How to get the author of the last commit in Git?
This is what you’re looking for: git log -1 –pretty=format:’%an’
This is what you’re looking for: git log -1 –pretty=format:’%an’
You can use the following command: git log –format=”%ae” HASH^! It works with git show as well. You need to include -s to suppress the diff. git show -s –format=”%ae” HASH
I would say that for most purposes @author is unwanted noise. The user of your API shouldn’t – and probably doesn’t – care, or want to know, who wrote which parts. And, as you have already stated, SVN already holds this information in a much more authoritative way than the code can. So if I … Read more
Click Window > Preferences > Team > Git > Configuration Click Add Entry and enter the key value pairs: Key: user.name Value: YourUsernameHere And Key: user.email Value: YourEmailHere