1、切换到主分支(master),从远程拉取最新版本,保证今后本地的master代码一直是最新
$git checkout master
$git pull
2、根据主分支(master)切一个特性分支(也即自己的分支)出来,并且切换到自己的这个特性分支
git checkout -b xxx
3、将特性分支推到远程上,特性分支首次push到远程上需要加-u
git push -u origin xxx
1、切换到主分支(master),从远程拉取最新版本,保证今后本地的master代码一直是最新
$git checkout master
$git pull
2、根据主分支(master)切一个特性分支(也即自己的分支)出来,并且切换到自己的这个特性分支
git checkout -b xxx
3、将特性分支推到远程上,特性分支首次push到远程上需要加-u
git push -u origin xxx