GitHub - BasicsΒΆ

Git is a distributed version control system for your projects.
GitHub is software to manage your Git repositories.

# show the status of a local repository
git status

# add a local file to an online repository
git add file

# commit local changes to an online repository with a commit message
git commit -am "message"

# push local changes to online repository
git push

# pull online changes to local repository
git pull

# view differences
git diff

# clone an online repository
git clone <repo>

# create and checkout a new local branch
git checkout <branch>

# merge branch into current branch
git merge <branch>

For more information, see the documentation.