git merge 將多個commit合並為一條之--squash 選項


轉自:

https://blog.csdn.net/themagickeyjianan/article/details/80333645

 

改進版本:合並多個提交為一條(git merge --squash branchname)

但是,操作方便並不意味着這樣操作就是合理的,在某些情況下,我們應該優先選擇使用--squash選項,如下:

$ git merge --squash anotherbranch $ git commit -m "squash merge description"



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM