git push之後有辦法回覆嗎? - Linux

Table of Contents

如題
因為不小心push了太多多的檔案然後Merge了

有辦法回覆到這個push前的狀態嗎?

Thanks

--

All Comments

Necoo avatarNecoo2017-02-18
git reset --hard <commit>, git push -f 請小心服用
Aaliyah avatarAaliyah2017-02-19
http://bit.ly/2llJRaL 可以參考我最近分享的內容
Candice avatarCandice2017-02-21
建議使用 git revert <commit> 比較好
Thomas avatarThomas2017-02-24
推 一樓
Harry avatarHarry2017-02-27
其實可以的話,真的用 revert就好,沒必要硬要覆寫。
Wallis avatarWallis2017-03-01
自己單人reset還好 有推出去還是用revert比較好