Deploy to GitHub via Git

  1. Install Git and set up your GitHub account.
  2. Execute the most popular commands in Git.
  3. Push all the files from local repository to GitHub.

Step 1 :- Install Git on Centos 7.

yum install git

Check the git version by typing below command.

git --version

Step 2:- Login from Git local to connect remote GitHub

Open the terminal in your lab and execute the below commands by replacing your_Email_Id with your registered email address in GitHub and Your_Username with your GitHub username.

Step 3:- Create multiple files and content in each file.

To create multiple files with different extensions and to create a folder to store all the files in one place, follow the steps shown below: