一些Git命令 关联远程分支/代码回退

123 阅读1分钟
1.转到指定分支 并直接关联指定远程分支
git fetch origin
git checkout -b branch origin/branch

2.软回退本地commit
git reset --soft HEAD~1