Skip to main content

GitHub Commands

All commands start with a git or a g

Init

a git init

Initializes a git repository.

Clone

a git clone

Clones a repository from a url.

Add

a git add <file>

Adds a file to the staging area.

Commit

a git commit
or
a git c

Commits all the changes in the working directory.

Branch

a git branch

Changes your branch.