4 ms·
Oh I am really digging the change to allow directory level configs for config settings. I have commited with my work credentials to open source projects more t
by ryanar 9y ago
Oh I am really digging the change to allow directory level configs for config settings.
I have commited with my work credentials to open source projects more times than I can count
- pawadu 9y agoNot uncommon! This is why .gitignore is the first thing I explain to git newcomers.
- matt_kantor 9y agoI think you misread the parent comment. They didn't say "committed my work credentials", it was "committed with my work credentials". As in they have two different identities and used the wrong one when committing a change, so the commit author was incorrect. Being able to set configs per directory provides a workaround.
- pawadu 9y agoYeah I totally misread that... Nevertheless, .gitignore should still be the first thing you learn about git :)
- simias 9y agoIndeed. My current workaround was simply not to put any email in ~/.gitconfig. Upon commiting for the first time in a new repo git would complain, then I could set the correct email for this particular repo using `git config user.email $email`.