git tag学习记录(二)
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                git tag学习记录(二)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                文章目錄
- 1. git 工原理示意
- 2. git tag記錄
- 2.1 git tag查看已有tag列表
- 2.2 git tag標(biāo)記當(dāng)前分支上的 tag信息為-a v1.5.4 -m(給指定的commit打Tag)
- 2.3 git push origin v1.5.4推送上一步打tag的分支到遠(yuǎn)程
 
 
 
1. git 工原理示意
工作流程
 
 TortoiseGit
2. git tag記錄
2.1 git tag查看已有tag列表
Administrator@MS MINGW64 /d/workplacwe/deptrum (project_split)
$ git tag   //查看已有所有tag
android-streamapi-v0.0.0
show
v0.1.0
。。。
v1.3.9
2.2 git tag標(biāo)記當(dāng)前分支上的 tag信息為-a v1.5.4 -m(給指定的commit打Tag)
Administrator@MS MINGW64 /d//workplacwe/deptrum (project_split) 
//對當(dāng)前分支上的某一次提交打上tag,外加版本號信息
$ git tag -a v1.5.4 -m "project_split" -f
2.3 git push origin v1.5.4推送上一步打tag的分支到遠(yuǎn)程
Administrator@MS MINGW64 /d/workplacwe/ (project_split)
// 提交本地tag到遠(yuǎn)程分支  -f可強(qiáng)制覆蓋遠(yuǎn)程同版本號分支
$ git push origin v1.5.4
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 168 bytes | 168.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To heptagon:deptrum/deptrum.git* [new tag]         v1.3.10 -> v1.3.10
總結(jié)
以上是生活随笔為你收集整理的git tag学习记录(二)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 【C++】容器与继承
- 下一篇: 掌上洛克挂机挂什么宠物经验高
