`

git常用操作

    博客分类:
  • git
阅读更多

1. git常用命令

http://www.xbc.me/git-commands/

http://blog.csdn.net/sunboy_2050/article/details/7529022

 

2. git命令图

http://www.cnblogs.com/1-2-3/archive/2010/07/18/git-commands.html

 

3. remove tag or branch

Removing a git tag:

git tag -d <tag>

Removing a git branch:

git branch -d <branch>

 Push tag to remote

git push origin tag

Deleting a tag or branch from Github:

git push origin :<tag or branch>

Deleting a tag (with the same name as a branch) from Github:

git push origin :refs/tags/<tag>

Deleting a branch (with the same name as a tag) from Github:

git push origin :refs/heads/<branch>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics