Is it possible to push a tag to currently pushed file in github? I have searched through Google but no clue at all. Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update As Abizern and fork0 mentioned in the comments, you can tag any git object. In any case,
git push --tags <remote> <branch>will solve the problem.—
As Shahbaz has mentioned tags are for commits, not files. If you’re asking about pushing a tag to an already pushed commit, yes, you can do that. Create the tag (using
git tag) and enter,Replace <remote> with the remote name (eg: origin) and <branch> with the branch name (eg: master). This will push all local tags in <branch> that haven’t been pushed before.