改变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> 以交互方式填写提交日志,真的很实用!

 

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