r/transprogrammer • u/TayIorRobinson 0x546179 • Jan 16 '22
a hacky, overcomplicated & partially broken solution to not deadnaming yourself on git (for macOS)
https://robins.one/notes/how-to-commit-identity-duplication.html
60
Upvotes
13
u/TayIorRobinson 0x546179 Jan 16 '22
sorry for the self promo, but i feel as if it’s too long for a reddit post, and thought it’d be interesting for any of you on macs, I assume it’d be similar Linux (however I’ve never tried it), and I think PsExec can do the same thing on Windows.
4
u/l_ugray Jan 16 '22
Assuming the identity split happens per repo, you can also configure a different identity per repo by setting the git user config locally to the repo, which is the default way git config works. Omit the
--globalthat’s usually recommended when configuring your user info. If you don’t set one globally at all, git will force you to set one in each repo before you make any commits, making it harder to make mistakes.1
u/[deleted] Jan 22 '22
https://stackoverflow.com/a/43654115