VScode新建本地分支并且发布到github上

//1,创建分支
git branch [branch name]

//例如:git branch dev

//2,推送分支到远程仓库
git push origin [branch name]:[branch name] 或者 git push origin [branch name]

//例如:git push origin dev:dev 或者 git push origin dev

//3,关联本地分支和远程分支
git push --set-upstream origin [branch name]
//例如:git push --set-upstream origin dev

你可能感兴趣的:(github,vscode,git,javascript)