Is it possible to push a tag to currently pushed file in github? I have searched through Google but no clue at all. Thanks!
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,
git push --tags <remote> <branch>
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.