Frequently-used git commands

2024-11-17

It contains some frequently-used git command.

  • set usename: git config --global user.name "your-name"
  • set email: git config --global user.email "your-email"
  • set the default branch to main: git config --global init.defaultBranch main