Reputation: 3409
I tried some of the tips listed in this thread: Find out git branch creator
For example:
git for-each-ref --format='%(authorname) %09 %(refname) %09 %(committerdate)'
But encounter general problems:
Sometimes I get listed as author of somebody else's branch that I have never checked-out or touched. Not sure exactly when, but in one case, there was an automatic merge from another user's push, and following my push right after that, I get listed as author of both mine and his branch.
The list will include some branches that have actually been deleted from remote.
Anyone has some clue why this happens, and how to resolve?
Upvotes: 0
Views: 1847
Reputation: 14089
Sometimes I get listed as author of somebody else's branch that I have never checked-out or touched. Not sure exactly when, but in one case, there was an automatic merge from another user's push, and following my push right after that, I get listed as author of both mine and his branch.
It is hard to tell what you might have done, but if that command is telling you are the author of a given branch it means the last commit was authored by you.
The list will include some branches that have actually been deleted from remote.
You can use git remote prune
for that :
prune
Deletes all stale remote-tracking branches under . These stale branches have already been removed from the remote repository referenced by , but are still locally available in "remotes/".
Upvotes: 2