Ben L
Ben L

Reputation: 1321

How to find the client that is pushing a Git Tag

Does git keep a record of who pushed a tag? We are trying to delete some old tags but they keep getting pushed back to the remote. Is this information contained in the tag or do I need to look at the logs of the server?

Upvotes: 1

Views: 50

Answers (2)

1615903
1615903

Reputation: 34731

No, it is not contained in the tag. Only the information of the person who created the tag is available. You need to look at the server logs to find out who pushed it.

Upvotes: 1

Damon D
Damon D

Reputation: 196

See the git book for info on tags.

If the tag was annotated, git show tag_name

Otherwise, server logs may have something, but your next best option is to narrow down when the tag reappears and find out who pushed to the remote. Maybe even start a scheduled task/cron job that does a git fetch and then git tag -l "some_search_string*" list tags to find the offending items. This can narrow down the time (and users) pushing the tags up.

Upvotes: 0

Related Questions