配置用户名和邮箱(全局)
$ git config --global user.name "your user.name"
$ git config --global user.email "your user.email"
本地的C:\Users\你的用户名.gitconfig中
场景:不小心把一次错误的代码push到远程服务器上的分支上,需要立即删除/撤销这次代码提交。
具体方法,git命令:
git log
git reset --hard <commit_id>
git push origin HEAD --force