1、git branch -a 查看本地及远程分支;
branch_for_create_1.png
2、git checkout -b 创建本地develop分支;
branch_for_create_2.png
3、git add添加文件到待提交列表,git commit 提交文件到本地仓库中相应分支;
branch_for_create_3.png
4、git push --set-upstream origin develop 推送本地分支到远程仓库;
branch_for_create_4.png
网友评论