2016.12.05
本地創(chuàng)建并checkout branch1分支
git branch -b branch1
等效于
git branch branch1
git checkout branch1本地各種修改文件操作
git add .
git commit . -m="xxx"本地分支提交遠(yuǎn)程,提交后遠(yuǎn)程,可以在agile上編譯發(fā)布這個(gè)分支
git push origin branch1本地回到主干
git checkout master本地合并分支
git merge branch1刪除本地分支
git branch -d branch1進(jìn)入遠(yuǎn)程gitweb茧泪,找到branch1分支,對(duì)比差異只搁,遠(yuǎn)程合并master
遠(yuǎn)程和本地的merge單獨(dú)各自進(jìn)行刪除遠(yuǎn)程分支(如有必要的話)
git branch -D branch1