A hack for getting the email address Git will use for a commit
A hack for getting the email address Git will use for a commit
Suppose I have branch
topic
checked out. It often happens that I want to
git push origin topic:mjd/topic
which pushes the topic branch to the origin repository, but on origin it is named mjd/topic instead of topic. This is a good practice when many people share the same repository. I wanted to write a program that would do this automatically.