Open tsunhua opened 5 years ago
$ git push origin HEAD
$ git push origin :dev-sth # 相当于 $ git push origin --delete dev-sth
#找到想要撤销的 commit id $ git log #撤销,但不对代码修改进行撤销,还可以再次 commit $ git reset <commit id> #撤销并忽略该次 commit 的代码修改 $ git reset --hard <commit id>
提交当前分支的更改到远程的同名分支
删除远程分支
撤销 git commit 但未 git push 的修改