徐祁
Developer of YOHO!
(origin)
(local)
origin/master
origin/develop
origin/feature/one
origin/feature/two
origin/feature/others
...
master
develop
feature/one
feature/two
feature/my-own
hotfix/my-own
...
git fetch
git add path/to/files
git commit
git checkout path/to/files
git reset HEAD path/to/files
git reset
git push origin xxx
HEAD
why git merge --no-ff ?
<<<<<<< HEAD:xxxx
//Your Code Here
...
================
//Origin Code
...
>>>>>>> conflictBranch:xxxx
//step1
与冲突代码的提交人核对冲突代码的取舍或者合并
//step2
处理完所有的冲突后
git add path/to/files
//step3
git commit
(Attation: 没有-m,直接git commit即可)
良好的代码更新和推送习惯
良好的分支管理
Ex:
//config
git config --gloabl alias.st "status"
//Output
git st === git status
<b>Less Input,Higher Efficient</b>
<del>装B利器</del>
By 徐祁