git stash

1. git stash 暫存當前代碼 默認最新的在最上面 棧操作

2. git stash list 查看當前stash列表

3. git show stash@{1} 查看list中下標爲1 的stash內容

4. git stash apply stash@{1} 將stash list中下標爲1的內容應用到工程中  不刪除暫存區

5. git stash drop stash@{1} 將stash list中下標爲1的內容刪除

6, git stash clear 刪除stash 列表中的全部內容

7. git stash pop 應用棧頂暫存內容並刪除

 

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