4 ms·
> git pulls information out of your OS and sticks it into your git commits without asking you Really? The only information I know of that gets into a commit is
by anowlcalledjosh 9y ago
> git pulls information out of your OS and sticks it into your git commits without asking you
Really? The only information I know of that gets into a commit is your name & email and the current time, and the first two have to be configured before you can commit.
- Sir_Substance 9y agoIt depends on whether it can pull your email address out of the OS. If you're on a linux machine, usually it can't, so it pops up the "set your global user and email" prompt without committing things. If you're on a domain windows machine though, often it can. When that's the case, it does the commit first, and then asks you to set the config explicitly. You then swear, change the config to be blank, and then go amend the commit you just made. In any case, the whole thing is a pain that adds mental overhead I'd rather spend on programming.