已经push 了 10 commit ,合并成一个 commit,重新 push
git reset --soft HEAD~10
git commit -m " "
git push --force
代码冲突,取消本地修改,重新 pull
git reset --hard HEAD
git pull
查看远程仓库路径
git remote get-url origin
git config --get remote.origin.url
git ls-remote --get-url
查看当前版本
git rev-parse --short HEAD
git rev-parse HEAD