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>

你可能感兴趣的:(git)