github创建tag版本号
git checkout -b bratchname v1.0
1、查看branch分支
命令:git branch
2、创建branch分支
命令:git checkout -b branch分支名
3、将本地branch分支推送到远程branch分支上
命令:git push origin branch名
4、branch分支切换
分支切换命令:git checkout branch名
5、删除远程branch分支
命令:git push origin —delete branch名
6、删除本地branch分支
命令:git branch -d 分支名
7、在对应branch分支上提交相关内容
命令:git push —set-upstream origin branch名
8、将test1分支合并到master(主)分支上
首先要切换到master(主)分支上,然后在进行合并
合并命令:git merge 指定分支名
9、修改本地代码,然后在提交到远程仓库的步骤
(1)先添加到暂存区 git add *
(2)提交暂存区内容 git commit -m “自己注释”
(3)更新远程仓库内容 git push origin master(这一步如果有冲突,先解决冲突,然后在从(1)步开始操作)
(4)提交到远程仓库 git push
还没有评论,来说两句吧...