Git Commands

Here to help with all of your Git commitment issues

Robert Alterman
The Startup

--

By Daniel Kinzler — Own work, CC BY 3.0, https://commons.wikimedia.org/w/index.php?curid=25223536

You might not like ’em, but you’ll need ’em — so here they are:

git config

Sets up user information like username and email to be associated with commits

git init

Creates a new local Git repository

git clone

Obtains a remote repository from a URL in order to create a local repository

git add

Adds file(s) to the staging area

git commit

Records the changes made in the files to a local repository

git push

Sends local commits to the remote repository

git status

Lists the files that have been changed and those that still need to be staged or committed

git remote

Shows all remote repositories and their URLs, and allows you to connect a local repository to a remote server

git checkout

Allows you to switch between branches

git branch

--

--

Robert Alterman
The Startup

Data Scientist | B.S. in Information Analysis from University of Michigan School of Information | linkedin.com/in/robertalterman/ | github.com/ralterman