多仓库推送
.git/config
[remote "origin"]
url = git@gitee.com:attacker/ldap-password.git
url = git@github.com:L00J/ldap-password.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
代码回滚
sourcetree
git log # 查看提交历史
git reset --hard d9ef373e143b #hard 硬操作; 恢复状态到指定一次提交
git reset --hard HEAD~2 # 恢复状态到最后第二次
push -u origin master -f # 强制提交到远程仓库
来源:oschina
链接:https://my.oschina.net/attacker/blog/3273983