📌  相关文章
📜  将一个分支重置为另一个 - Shell-Bash 代码示例

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

代码示例1
# Make sure your working tree is in a clean state
git status

# Check out the branch you want to change, e.g. some-branch
git checkout some-branch

# Reset that branch to some other branch/commit, e.g. target-branch
git reset --hard target-branch