8-28 849 views
克隆项目
git clone https://github.com/swordyang/shadowsocks.git
cd shadowsocks
显示当前所有分支
git branch -a

创建分支
git branch origin/fly3w

切换到指定分支
git checkout origin/fly3w

查看当前heads的引用
ls -F .git/refs/heads/origin
cat .git/refs/heads/origin/fly3w

修改并提交
push分支,会push到本地,不会到远程
git push
push分支到远程,git push origin local_branch:remote_branch
git push origin origin/fly3w:remotes/origin/fly3w