[英]How to merge old commit in master branch with xCode 5
是否可以直接在xCode中將我所做的舊提交合並到master分支中。 我知道我可以將當前分支合並到另一個分支,但是有時我會在測試較舊的提交時繼續從事我的項目。 確認該提交后,我想將其合並到xCode的master分支中,這可能嗎?
謝謝。
是的,您可以遵循的可能步驟
git log
並找到特定的提交 git fetch origin <commit_id>
git checkout FETCH_HEAD
git checkout -b <branch_name>
git merge -s ours master
git checkout master
git merge <branch_name>
創建的分支git merge <branch_name>
git push --all
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.