1、回复单个文件夹
git checkout 文件名字
2、提交代码过程
(1)如果在主分支:
git add 文件名
git commit -m "注释"
git pull //如果有冲突解决冲突,没有最好。 git add -u ;git commit -m ""
git push
(2)如果在分支
git add 文件名
git commit -m "注释"
git checkout master //切换到主分支
git merge 分支名 //合并分支
git pull //如果有冲突解决冲突,没有最好。 git add -u ;git commit -m ""
git push
(3) 错误 :branch mywork is published (but not merged) and is now 1 commits behind
git checkout .
repo rebase