链接:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001374385852170d9c7adf13c30429b9660d0eb689dd43a000
远程交互:
向远程添加仓库:git remote add origin git@github.com:michaelliao/learngit.git
向远程推送内容:git push origin master
从远程获取仓库:git clone git@github.com:michaelliao/gitskills.git
向远程推送标签:git push origin v1.0
向远程推送删除标签:git push origin :refs/tags/v0.9
标签:
添加标签:git tag v1.0 (commit id)
添加详细标签:git tag -a v1.0 -m “version 1.0 release” (commit id)
查看所有标签:git tag
查看标签详情:git show v1.0
删除标签:git tag -d v1.0
网友评论