The information given on the git instrutions page for pushing a tag say:
git checkout 7.x-1.x
git tag 7.x-1.0
git push origin 7.x-1.0
However in the guide: Maintaining a drupal.org project with Git (http://drupal.org/node/711070) the instructions are slightly different:
git checkout 7.x-2.x
git tag 7.x-2.0
git push origin tag 7.x-2.0
Note the inclusion of the 'tag' keyword in the second example.
I believe that the second version is the correct version? If so then the git instructions should be updated to this.
Comments
Comment #1
helmo commentedBoth are technically correct. However the second is more specific, and slightly safer.
So +1 to change the instructions.
Comment #2
helmo commentedeliza411: What's your take on this?
Comment #3
eliza411 commentedThis is a newly introduced syntax. sdboyer and I would like to know when it was introduced in git before updating.
Comment #4
helmo commentedThe documentation of this 'feature' in Documenation/git-push.txt was added in 2009 and is included in v1.6.1.3 by commit 803918462e58005d18c0ab63686dbd9e91330dfe.
When the actual feature was added will be somewhat harder to dig out.
Comment #5
eliza411 commentedI think that's plenty :) I'll confirm with sdboyer, then make the update.
Comment #6
sdboyer commentedsure, that's plenty old enough. i'm fine with updating the docs to suit.
Comment #7
eliza411 commentedI've made this change. Sorry it took so long to get to and especially since the syntax turned out to be older than sdboyer originally thought :)
Comment #9
mayuri_02 commentedHOw to convert Sanbox project to Full project once we pushed code using git.
Comment #10
opdaviesIf you don't already have it, you will need to apply for permission to create full projects.