3 ms·
My solution: I don't have a global username and email set up. I have user.useConfigOnly set to true, this causes a hard failure if i try to commit without my id
by blueflow 5y ago
My solution: I don't have a global username and email set up. I have user.useConfigOnly set to true, this causes a hard failure if i try to commit without my identity configured. And when i configure my identity, its on a per-repo basis only.
- rkangel 5y agoI do exactly this. In my case it's just the email I want to vary so it looks like this: [user] name = My Name useConfigOnly = true You get an "Author identity unknown" error when committing to a repo the first time and then you just run this once to set up that repo: git config --local user.email "me@email.net"