很简单,记录一下给有缘人看
- 首先克隆
git clone url.git
- 然后查看当前所有分支
git branch -a
- 新建本地分支
git branch my_branch
,然后切换到本地分支git checkout my_branch
- 将我们的项目代码提交
git add .
,git commit -m "new add files"
- 最后将本地分支推到远程分支
git push origin my_branch
- 完结
很简单,记录一下给有缘人看
git clone url.git
git branch -a
git branch my_branch
,然后切换到本地分支git checkout my_branch
git add .
, git commit -m "new add files"
git push origin my_branch