git使用

链接:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001374385852170d9c7adf13c30429b9660d0eb689dd43a000


远程交互:

向远程添加仓库:git remote add origin [email protected]:michaelliao/learngit.git

向远程推送内容:git push origin master

从远程获取仓库:git clone [email protected]: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

你可能感兴趣的:(git使用)