📜  具有先前提交的结帐大师 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:39.210000             🧑  作者: Mango

代码示例1
git checkout 307a5cd        # check out the commit that you want to reset to 
git checkout -b fixy        # create a branch named fixy to do the work
git merge -s ours master    # merge master's history without changing any files
git checkout master         # switch back to master
git merge fixy              # and merge in the fixed branch
git push                    # done, no need to force push!