These are two short notes to remind myself about how a couple of things in Git work.
Changing master to main
The following works to change master to main.
E:\repo> git branch -m master main E:\repo> git push -u origin main
See the excellent post by Scott Hanselman for all the details and for more specific scenarios and discussion.
Committing with the correct credentials
Do this in the project directory to save local (project-specific) credentials that override the global credentials on the computer.
git config user.name "Author Name" git config user.email "email@example.com"
The next commit will get marked to the correct user for that repository.