Skip to content

Install Git

Install Git on Windows

  1. Go to git-scm.com/install/windows and download the latest version
  2. Run the installer
  3. Under Select Components, enable Add a Git Bash Profile to Windows Terminal
  4. Set the default editor to your preference (Notepad or VSCode recommended)
  5. Set the default branch name to main
  6. Complete the installation using the remaining defaults

Configure Git

  1. Open Git Bash (search for it in the Start menu)
  2. Set your name: git config --global user.name "Your Name"
  3. Set your email: git config --global user.email "your.email@example.com"
  4. Set the default branch to main: git config --global init.defaultBranch main
  5. Enable auto-creation of remote branches: git config --global push.autoSetupRemote true
  6. Verify your configuration: git config --list

With this setup complete, you are ready to integrate Git with your IDE (e.g. RStudio) and create a new git repository.

Resources