Skip to content

Instantly share code, notes, and snippets.

@sarthakgupta072
Last active October 2, 2018 04:49
Show Gist options
  • Select an option

  • Save sarthakgupta072/ae16081ccf671dbf4972c4088ea85b85 to your computer and use it in GitHub Desktop.

Select an option

Save sarthakgupta072/ae16081ccf671dbf4972c4088ea85b85 to your computer and use it in GitHub Desktop.
Contains instructions to configure git after installing git on your operating system

Making a GitHub account

  1. Go to https://github.com.
  2. On the home page, click on ‘Sign Up’.
  3. Choose a unique ‘username’ for yourself. Be careful to choose a username, as this cannot be changed in future. After that choose a free plan and follow the next instructions.

After these steps your account will be created and can be visited at https://github.com/username Congratulations!!!!

Configuring Git

On Windows

  1. Open GitBash.

On a Linux Distribution (Eg Ubuntu, Arch etc)

  1. Open Terminal (Ctrl + Alt + T).

On a Mac OS

  1. Open a terminal window.

Then...

  1. Enter the following command to check if git is properly installed or not:
    git --version
    The version of Git that is installed should appear. If not, then install again.

  2. Enter the following to configure git:
    git config --global user.name "JohnDoe"
    git config --global user.email "[email protected]"
    Instead of "JohnDoe" and "[email protected]", enter your "username" and the "email" respectively that you used to create the GitHub account. In the above example, the person's username on GitHub must be "JohnDoe".

  3. Confirm that you have set the Git username and email correctly:
    git config --global user.name
    git config --global user.email

It should display the information you entered above.

Your git setup is done :)

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