git打tag

This commit is contained in:
guobao.jiang 2017-06-01 15:07:31 +08:00
parent ca1cc9b851
commit c1f1990691
2 changed files with 10 additions and 0 deletions

View File

@ -60,3 +60,10 @@ git log -p filename
git checkout tag_name
# 注意: tag 相当于是一个快照,是不能更改它的代码的,如果要在 tag 代码的基础上做修改,你需要一个分支:
git checkout -b branch_name tag_name
# git打tag
git tag v0.3.4
# 将tag推送到远端
git push origin v0.3.4
# 显示tag列表
git tag -l

View File

@ -70,3 +70,6 @@ sudo passwd USERNAME
# 拨出U盘
sudo umount /dev/sdb1
https://unix.stackexchange.com/questions/151689/how-can-i-instruct-yum-to-install-a-specific-version-of-package-x