工作中的一些Git使用 原

git reverse的時候 千萬千萬要注意時機. reverse這個操作得在拉分支出去之後.

查看所有stash git stash list

應用序號爲0那個stash並且不刪除它 git stash apply 0

應用序號爲0那個stash並且刪除刪除刪除它 git stash pop 0

git stash save "env" stash當前的改動並且取一個名字叫env

默認操作是pick,並且這些commit們最新最新的在最下下下面. git rebase -i commit_id

用來修改commit message錯誤 rebase -i呢修改好久之前的錯誤 git commit --amend

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