Git Cheat Sheet

design for digital media environments


$ git config- –global “[name]” – sets the name


$ git init [project name] – new local repository

$ git clone – downloads project


$ git status – lists modifies files to be committed

$ git diff – shows file differences

$ git add [file] – snapshots file for versioning

$ git reset [file] – unstages file

$ git commit -m “[message]” – records file snapshot


$ git log – lists version history

$ git show [commit] – outputs content changes of that commit


$ git reset [commit] – undoes all commits after [commit]

$ git reset –hard [commit] – discards all history, changes back to the commit


$ git fetch [bookmark] – downloads all history

$ git merge[bookmark]/[branch] – combines bookmarks branch to local branch

$ git push [alias] [branch] – uploads all commits to git hub

$ git pull – downloads bookmark history and incorporates changes


Changes made using terminal


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s