salarkhan / git-pear

swap credentials after each commit
3 stars 0 forks source link

Uninstall #4

Closed salarkhan closed 10 years ago

salarkhan commented 10 years ago

Fixes #3.

Can not for the life of me figure out how to awk/sed out the email address from the output of git config --global.

Halp pls.

salarkhan commented 10 years ago

JK figured it out. Pushing up soon

supertopher commented 10 years ago

On my phone at the moment, but does setting git config --local user.name reset the local config? Also possibly just looking in .git for where that is may be simpler than the current approach

salarkhan commented 10 years ago

Errrr no. It just resets that one field. Which made me realize that I should reset both the email & the name. I'm dumb

Since those are the only 2 fields we ever change, it seems a bit hamfisted to try and reset the entire thing, no?

supertopher commented 10 years ago

yeah we shouldn't blow away anything else if we don't have to

supertopher commented 10 years ago

+1 to merging if you are cool with my changes

salarkhan commented 10 years ago

omg that is so much cleaner austin316