我一直在研究一個我們可以稱之爲「A」的分支。我剛剛意識到自從我上次提交以來我添加的代碼應該位於特定的(實驗性)分支中,而不是「A」中。我如何將更改提交到新分支並將分支「A」留在上次提交時的狀態?Git:How to move changes since last last commit to a new branch
11
A
回答
20
4
git stash
git checkout branch-A
git stash pop
相關問題
- 1. javafx tableview auto scroll to last
- 2. Diffing two branches to show changes in one branch
- 3. LINQ To Entities不識別方法Last。真?
- 4. Git「commit left behind」when turn back to a branch from detached head
- 5. .filter(':last')與.last()
- 6. Apache mod_rewrite'loop'/ Last last functioning
- 7. git rebase from master to remote branch。!
- 8. linq last last的平均值
- 9. git commit to all branches
- 10. 使用#last與<a id="last">化妝顯示比頁
- 11. LINQ to Entities不識別方法'Int32 Last [Int32]
- 12. Fibonacci Last Number
- 13. XCode中沒有Go To Last編輯位置快捷方式嗎?
- 14. Git rebase to older commit
- 15. git svn master to branch to master - 仍然試圖提交分支
- 16. jquery last addclass
- 17. Android-How to use a fragment to display a webview
- 18. git commit to github repo
- 19. python 3 new to classes
- 20. Yii2實現'Last Last Seen'更新
- 21. last-child/last-of-type和[attr | = value]/[attr^= value]
- 22. How to add MBProgressHUD to a queue
- 23. Volley發送If-Modified-Since當文檔不具有Last-Modified
- 24. EditText Android,[new to android]
- 25. insertXY()to new sketch - Openlayers
- 26. gallery last image fix
- 27. 嵌套ng-repeat $ first和$ last?
- 28. SQL LAST()函數
- 29. SELECT *,LAST(DATE_TIME)
- 30. Swift LocalNotification last fireDate
簡單的問題,簡單的回答:) – amcc 2013-09-20 19:27:08