需求

master 分支覆盖 test 分支。

步骤

1
2
3
4
5
6
7
8
9
10
# 依次在cmd窗口中执行

# 切换到test分支
git checkout test

# 用master分支覆盖本地分支
git reset --hard origin/master

# 将本地分支强推到 master
git push -f