05-标签管理

    xiaoxiao2022-07-06  183

    标签:可以通过标签进行回滚

    [root@localhost remote_repo]# echo "new code" >> test.txt [root@localhost remote_repo]# git add test.txt [root@localhost remote_repo]# git commit -m "test tag" [master 7f32d7b] test tag 1 file changed, 1 insertion(+) [root@localhost remote_repo]# git push Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 285 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) To git@github.com:gjjcommon/remote_repo.git 84c829f..7f32d7b master -> master [root@localhost remote_repo]# git tag [root@localhost remote_repo]# git tag v1.0.1 [root@localhost remote_repo]# git tag v1.0.1 [root@localhost remote_repo]# git push origin v1.0.1 Total 0 (delta 0), reused 0 (delta 0) To git@github.com:gjjcommon/remote_repo.git * [new tag] v1.0.1 -> v1.0.1

    去GitHub上看标签

    最新回复(0)