Skip to content

Instantly share code, notes, and snippets.

@ricog
Created January 9, 2012 20:01
Show Gist options
  • Save ricog/1584644 to your computer and use it in GitHub Desktop.
Save ricog/1584644 to your computer and use it in GitHub Desktop.
Basic Git Workflow
## Installation
get the files
git clone <repo url>
## Working on files
see what you've changed
git diff
get updates from origin repository
git pull
## Adding files to commit
add currently tracked files with changes
git add -u
interactively select chunks of files to add
git add -p
add specific files or folders
git add <filename or path> [<filename or path>]
## Committing
git commit -m 'your message here. make it good'
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment