改變GIT的歷史

git checkout 和 git reset 操作就不介紹了


git rebase 變基操作就像在某個版本,跟git revision說前面的路我們去過了走不通,轉彎吧

用法:


git rebase --onto 

git rebase --onto 

git rebase                                 

git rebase                                 

git rebase -i ...

git rebase -continue

git rebase --skip

git rebase --about
 

丟棄git的提交歷史,使用 git commit-tree 或者 git hash-object 創建新的commit,這些內容將在後面繼續介紹

反轉提交,做一個跟最近提交相反的提交!這是我覺得GIT中相當牛的一個功能

git revert <revision> 以交互方式填寫提交日誌,真的很實用!

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章