Git and GitHub

Common Git commands

Description

Command

Clone a remote repository from GitHub to your local computer

git clone <url of Github repository>

Check the status of the local repository

git status

Add a file to the staging area

git add <FILENAME>

Commit staged file to the version control history

git commit -m "message with info about the changes"

Push the changes in the local repository to the remote repository on GithHub

git push

Pull changes from the remote repository on GitHub to the local repository

git pull

View the commit history

git log