From a6b3fed8c2f119f8a08fbc8f44706c1fe9b10d42 Mon Sep 17 00:00:00 2001 From: Adrien Kaiser Date: Wed, 1 May 2013 13:04:05 -0300 Subject: [PATCH] Update git tagging --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59ec34a..043004c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ All useful git commands - Clone repository: `$ git clone git@github.com:/.git` #####From Local -- Move to code directory `$ cd ` +- Move to code directory `$ cd ` - 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:/.git` @@ -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:/.git +$ cd +$ git fetch git@github.com:/.git "refs/tags/*:refs/tags/*" +$ git push --tags +``` + + ###See list of all commits ``` $ git log [-1] [--pretty=oneline] @@ -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:/.git +$ cd +$ git fetch git@github.com:/.git "refs/tags/*:refs/tags/*" +$ git push --tags ``` ``` $ git log [-1] [--pretty=oneline]