git版本回退的命令,分别是远程和本地的版本回退

1.查看远程分支:

git branch -a

2.git本地版本回退: 

Git reset --hard commit_id(可用 git log –oneline 查看)

3.git远程版本回退:

git reset --hard HEAD~1

git push --force

猜你喜欢

转载自blog.csdn.net/qq_44890362/article/details/121870383