git config user.name Foobar
git config user.email foo@bar.com
...which will set that config variable for the current repository only -- not global. I ended up do the a similar thing for a simple git pairing tool[1] that would let you set your name to two people, so that one could discern the pair from the commit logsShow HN: Karn – Manage multiple Git identities
11–15 of 15 posts
Re: Show HN: Karn – Manage multiple Git identities
#12I don't mean to be a fuddy-duddy, but I don't get it... How is this better/worse than doing... git config user.name Foobar git config user.email foo@bar.com ...which will set that config variable for the current repository only -- not global. I ended up do the a similar thing for a simple git pairing tool[1] that would let you set your name to two people, so that one could discern the pair from the commit logs [1]: h…
Re: Show HN: Karn – Manage multiple Git identities
#13Does this handle management of SSH keys?
I think setting up different hosts in SSH config is a better way to manage SSH keys.
Re: Show HN: Karn – Manage multiple Git identities
#14I don't mean to be a fuddy-duddy, but I don't get it... How is this better/worse than doing... git config user.name Foobar git config user.email foo@bar.com ...which will set that config variable for the current repository only -- not global. I ended up do the a similar thing for a simple git pairing tool[1] that would let you set your name to two people, so that one could discern the pair from the commit logs [1]: h…