github(三)----------日常生活简单使用git合并分支打tag

来源:互联网 发布:北京鼎泰网络推广公司 编辑:程序博客网 时间:2024/05/29 02:47

日常生活简单使用git合并分支

我想说就是和普通的合并分支一样,哈哈哈哈

  1. 切换到保证本地的develop分支,并且保证提交为稳定版本
  2. 然后切换到master分支,$ git merge –no-ff -m “merge with no-ff” deveplop
  3. 把master版本push到远程服务器,$ git push
  4. 如果需要把这个master或者develop版本打上标签,$ git tag -a 0.0.1 -m “0.0.1 — maven modules”
  5. 最后把这个tag push到远程版本库$ git push origin –tag

然后我们可以在我们github的版本库看到我们的tag

ps:

$ git reset –hard HEAD^:版本回滚到上次提交代码的地方

$ git reset –hard ** 版本回滚到自定的版本

这是git管理分支的图,我也在努力学习中

image

image

cto bo分享的网络资料

0 0
原创粉丝点击