Skip to content

Commit

Permalink
Update git tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienkaiser committed May 1, 2013
1 parent ea83576 commit a6b3fed
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ All useful git commands
- Clone repository: `$ git clone git@github.com:<username>/<RepoName>.git`

#####From Local
- Move to code directory `$ cd <Code Dir>`
- Move to code directory `$ cd <RepoName>`
- Initialize a new Git repository `$ git init`
- Create repository on `github.com`
- Link local directory to remote github repository `$ git remote add origin git@github.com:<username>/<RepoName>.git`
Expand Down Expand Up @@ -62,6 +62,15 @@ $ git tag -d vX.X
$ git push origin :vX.X
```

To apply a tag from a repository to a fork or any other repository: ([link](http://stackoverflow.com/questions/1357086/git-how-do-i-pull-a-tagged-revision-into-my-fork))
```
$ git clone git@github.com:<ForkUsername>/<RepoName>.git
$ cd <RepoName>
$ git fetch git@github.com:<BaseUsername>/<RepoName>.git "refs/tags/*:refs/tags/*"
$ git push --tags
```


###See list of all commits
```
$ git log [-1] [--pretty=oneline]
Expand Down Expand Up @@ -171,6 +180,11 @@ $ git push --tags
$ git show vX.X
$ git tag -d vX.X
$ git push origin :vX.X
$ git clone git@github.com:<ForkUsername>/<RepoName>.git
$ cd <RepoName>
$ git fetch git@github.com:<BaseUsername>/<RepoName>.git "refs/tags/*:refs/tags/*"
$ git push --tags
```
```
$ git log [-1] [--pretty=oneline]
Expand Down

0 comments on commit a6b3fed

Please sign in to comment.