I’m finally getting around to doing some cleanup and prep on our Programming Laptops, and thought it may be a good time to share any configuration/setup you perform we perform on our programming computers. Mine mostly just center around setting up Git in our workflow.
Uninstall the Git Credential Manager for Windows
The second year we used these laptops, suddenly no one, except returning members using the same laptops as the previous year, could push code. Turned out that because the credential manager had stored the creds for the previous members and at least at the time didn’t give you a prompt of any kind to “update” the creds, so our solution was simply to delete the manager.
cd C:\Program Files\Git\mingw64\libexec\git-core git-credential-manager.exe uninstall
- Sometimes you need to add
--forceto the end of the uninstall command, not sure why…
Clear the Global Git Config
We instruct the students not to set user.name and user.email globally, opting to do it at the repo-level instead (which also better allows multiple users of one laptop if there is a “shortage”), but some will still do it, so that’s usually something I check for, even though if the other students do properly set it at the repo-level it shouldn’t mess up author history, I still double check this at least at the beginning of the season.
I’m sure I’ll think of others, and I’ll come back and post them.