1、git branch -a 查看本地及远程分支;
![](https://img.haomeiwen.com/i3909859/8e973c957070ec65.png)
2、git checkout -b 创建本地develop分支;
![](https://img.haomeiwen.com/i3909859/8234d031c930c32e.png)
3、git add添加文件到待提交列表,git commit 提交文件到本地仓库中相应分支;
![](https://img.haomeiwen.com/i3909859/f18b686f14db2555.png)
4、git push --set-upstream origin develop 推送本地分支到远程仓库;
![](https://img.haomeiwen.com/i3909859/171ecbf67f143a49.png)
1、git branch -a 查看本地及远程分支;
2、git checkout -b 创建本地develop分支;
4、git push --set-upstream origin develop 推送本地分支到远程仓库;
本文标题:Git管理项目-分支创建
本文链接:https://www.haomeiwen.com/subject/ipjszhtx.html
网友评论