A hack for getting the email address Git will use for a commit

Posted on December 13, 2016. Filed under: Uncategorized | Tags: , |

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.

Liked it here?
Why not try sites on the blogroll...