July Release Confetti
150+ New Courses, Hands‑On Labs, And
Interactive Learning Activities
Learn More

Getting Set Up in GitHub

Length: 00:12:04

Lesson Summary:

Source control is an important part of any continuous integration / continuous delivery pipeline, and git is the most widely used source control tool today. As such, when you are working with a tool like Jenkins, you will frequently need to interact with git. This lesson will give you a basic introduction to git and GitHub. It will also demonstrate how to install git in a CentOS 7 environment and configure it to authenticate with GitHub. This will provide a foundation for the usage of git and GitHub throughout the course.

You can find instructions on installing git for a variety of environments here: https://git-scm.com/downloads

And you can find documentation on setting up ssh authentication with GitHub for various environments here: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

Here are the commands used to install and configure git in this lesson's demo:

sudo yum -y install git
git config --global user.name "Will Boyd"
git config --global user.email "willb@linuxacademy.com"
ssh-keygen
cat /home/user/.ssh/id_rsa.pub

Once you have installed and configured git, and you have added your ssh public key to GitHub, you can test the connection like so:

ssh -T git@github.com


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More