work note
2012年1月17日 星期二
[Git] 刪除commit
1). 將狀態回覆到HEAD前,commit刪掉、資料也回復到原本
git reset --hard HEAD^
1). 僅commit回覆到HEAD前,資料不會變更
git reset --soft HEAD^
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言