Git管理项目-分支创建

2020-06-01  本文已影响0人  122604

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
上一篇 下一篇

猜你喜欢

热点阅读