Subscribe to NotarySojac's debian career        RSS Feed
***** 1 Votes

Git - Setting Up Versions and Direct Downloads on Github

Icon Leave Comment
As time goes on, while managing your source code with github, you'll find yourself becoming bored with just having the latest version of your project being easily downloadable from

www.github.com/YOUR_NAME/YOUR_PROJECT


And you might even want several versions of your project accessible to your users. Well good news, there's tagging!

ref: http://wptheming.com...ove-github-tags

With git tagging, you can tag versions of your code with version numbers and summaries. Then you can upload these tags to github and your users will have a nifty download interface on your github page if they click the "tags" tab.

To create your very first tag on the local repo:
$  git tag -a v1.0 -m "Version One: There shall be no escape!"



You can list it off now (along with all other tags) by running:
$  git tag -n



Then to upload it do:
$  git push origin --tags




Great job! Now you can check your github page and you will see that your project now has 1 tag! You even have a direct download link!

https://github.com/Y...CT/zipball/v1.0

Posted Image

But eventually you will sober up from the excitement of learning how tags work, and will like to delete this tag as that its comment is too silly. This too can be done with ease.

To delete that tag:
$  git tag -d v1.0
$  git push origin :v1.0



And just as mysteriously as it had arrived, it was gone...

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry