【随手记】git pull代码并强制覆盖本地变更

1、git fetch   将代码拉取并不执行任何操作

2、git reset --hard origin/[你的分支]

猜你喜欢

转载自blog.csdn.net/lee_master/article/details/97641689