Home > front end >  Push directory and tag together
Push directory and tag together

Time:11-19

The task is: Tag the current version of the project with the tag ABC. Push all changes to your submission repository. And make sure to push the tag.

I got to the depository I needed. I tagged it by: git tag ABC

How do I push all the changes and the tag to my submission repository?

Is that command do what I want? git push origin ABC

CodePudding user response:

Git never pushes directories, always commits, branches, or tags. If you push any of those three, all ancestors ("parents") will be pushed too. So to push the tag and its referenced commit, including all parent commits, use git push origin TAGNAME, yes.

  • Related