新建远程分支
git push origin remote_branch_name:local_branch_name
// remote_branch_name 是远程分支的名字
// local_branch_name 是本地分支的名字
git branch -a // 查看所有分支(远程+本地)
删除远程分支
git push origin :remote_branch_name
// 或
git push origin --delete remote_branch_name
git fetch
git checkout -b local_branch_name origin/remote_branch_name
网友评论