Configure Git on Ubuntu 18.10 Cosmic Canimal

Techie     June 2020

Git is used as a version control system. In this tutorial we are going to set it up to match our Github account. If you don’t already have a Github account, register one.

Ubuntu version: 18.10

STEP 1:

Account Configuration
user@local_machine
# Replace name and email in the following steps with the ones you used for your Github account.

git config --global color.ui true

git config --global user.name "YOUR NAME"

git config --global user.email "YOUR@EMAIL.com"

# Generate SSH key

ssh-keygen -t rsa -b 4096 -C "YOUR@EMAIL.com"


STEP 2:

Copy the generated SSH key and add it to your Github account
user@local_machine
# Copy SSH key. This command outputs your SSH key on the terminal. Highlight everything and copy.

cat ~/.ssh/id_rsa.pub


Paste the output of the above command here .

STEP 3:

Verify it Worked
user@local_machine

ssh -T git@github.com

Hi user_name! You've successfully authenticated but GitHub does not provide shell access.


That’s it!

See you in the next tuts