I have TFS GIT where my code base has been uploaded. I come from a TFS background where I am used to creating labels to create a snapshot of my code at any point in time. For TFS GIT, I found out that I need to create tags. However these tags only get created locally on my dev box.I want this tag to be pushed to the central repository but when I run this command on the command prompt:
git push origin MyTag
I get this error
fatal: MyTag cannot be resolved to branch.
Unexpected end of command stream
As far as I know, I am on the main branch, or the branch that gets created by default when you upload your code. I have not created any specific branches as such. How does one push a TAG from one dev box to the TFS server and then get it on another developer's box? I dont think creating a branch for every intended snapshot/label is a good idea.
Thoughts??