Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Super condensed Git cheatsheet

Install Git

# Ubuntu
sudo apt-get install git
# OSX http://mac.github.com/

Create a Git repository in the current directory

# Open a terminal, `cd` to the project directory and then
git init

Add everything to a first commit (protip: ignoring files)

git add .
git commit -m 'type your awesome commit message here'

Hack hack hack

Add everything to a next commit (remember the protip: ignoring files)

git add .
git commit -m 'type your awesome commit message here'

There you are, and remember: "Commit early, commit often!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.