Skip to content

Instantly share code, notes, and snippets.

@gcnit
Created January 3, 2021 20:46
Show Gist options
  • Save gcnit/8fd5aa798c715eade114276a1d50a6e3 to your computer and use it in GitHub Desktop.
Save gcnit/8fd5aa798c715eade114276a1d50a6e3 to your computer and use it in GitHub Desktop.

Windows

  • Download git from https://gitforwindows.org/
  • When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.
  • Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).
  • Run the following commands to configure your Git username and email using the following commands, replacing Emma's name and email with your own. These details will be associated with any commits that you create:
git config --global user.name "Emma Paris"
git config --global user.email "eparis@atlassian.com"

Linux

  • From your shell, install Git using apt-get:
sudo apt-get update
sudo apt-get install git
  • Verify the installation was successful by typing git --version which should return the version number:
git --version
  • Run the following commands to configure your Git username and email using the following commands, replacing Emma's name and email with your own. These details will be associated with any commits that you create:
git config --global user.name "Emma Paris"
git config --global user.email "eparis@atlassian.com"

Mac

  • From your shell, install Git using Homebrew:
brew install git
  • Verify the installation was successful by typing git --version which should return the version number:
git --version
  • Run the following commands to configure your Git username and email using the following commands, replacing Emma's name and email with your own. These details will be associated with any commits that you create:
git config --global user.name "Emma Paris"
git config --global user.email "eparis@atlassian.com"

These commands have been taken from Atlassian's website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment