Skip to content

Commit

Permalink
Add info about tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienkaiser committed Apr 15, 2013
1 parent 7e2f43f commit ea83576
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,24 @@ All useful git commands

##Other features

###Create a tag ([Git doc](http://git-scm.com/book/en/Git-Basics-Tagging))
To create a tag for the current commit, just use git tag. To tag a given commit, give the commit id to git tag:
```
$ git tag -a vX.X -m 'Version X.X' [commit]
$ git push --tags
$ git show vX.X
```

To remove a tag locally and remotely: ([link](http://wptheming.com/2011/04/add-remove-github-tags/))
```
$ git tag -d vX.X
$ git push origin :vX.X
```

###See list of all commits
```
$ git log
$ git log [-1] [--pretty=oneline]
```

###Apply 1 commit from another branch ([link](http://wiki.koha-community.org/wiki/Using_Git_Cherry_Pick))
Expand Down Expand Up @@ -151,7 +166,14 @@ $ git merge <branch name> master
$ git branch -D <branch name>
```
```
$ git log
$ git tag -a vX.X -m 'Version X.X' [commit]
$ git push --tags
$ git show vX.X
$ git tag -d vX.X
$ git push origin :vX.X
```
```
$ git log [-1] [--pretty=oneline]
$ git cherry-pick <commit>
$ gitk
$ git reset --hard <commit>
Expand Down

0 comments on commit ea83576

Please sign in to comment.