1. 程式人生 > >git stash 基本命令講解

git stash 基本命令講解

git stash 把現有的修改藏起來 git stash save “desc” 把現有的修改藏起來,並且新增一個註釋 git stash list 檢視所有藏起來的 git stash pop [email protected]{index} 刪除 最近/指定 一個藏起來的,並還原回來程式碼 git stash apply [email protected]{index} 應用藏起來的不刪除stash 列表 git stash drop [email protected]{index} 刪除藏起來的不還原始碼 git stash clear 清除所有修改 git stash show

[email protected]{index} 檢視修改了什麼檔案 git stash show -p [email protected]{index} 檢視修改了什麼檔案,裡面修改了什麼內容