Starting Set user info: git config --global user.name "<name>" git config --global user.email "<email>" You can remove global to apply the configuration to the current repo. Set default branch name to main: