理論與實作
關於 歸檔 分類 標籤 作者 English ไทย

git復原最後一次的commit

三月 20, 2016
在Github上編輯

從 [1] 的回答:

# 重設上次修改
$ git reset HEAD~
# 編輯並再次git add修改,完成後:
$ git commit -c ORIG_HEAD

References:

[1]

git reset commit

git - How do you undo the last commit? - Stack Overflow


作者: 戴上為
∈ 分類: Linux
∑ 標籤: Linux , git
Powered by Github Pages, Pelican, pyScss.