Dieses Blog durchsuchen

Freitag, 5. August 2016

create a tag in git and release this tag

Today we want to create a repo, add a file and create a tag. After that, we want to release this tag.

This is a everyday process you need, if you want to publish a new version of your software,

Prerequisits:
- a git client 
- a github account

1) create a repository named "testing-tags" on github. If you do not have an account, you have to create one on github.com


2) Create a local folder "testing-tags" somewhere on your computer
 
- open a console an navigate to this folder and type:
 
echo "# testingtags" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/<youtgithubusername>/testing-tags.git
git push -u origin master
 
This will add the README.md to the new github repository.
 
 
Now we want to tag the first version of your software 
in your terminal type:
git tag 1.0.0
git push --tags
 
Thats it. You have pushed your first tag 1.0.1 to github you can find it on github here:
 
 

Keine Kommentare:

Kommentar veröffentlichen