Skip to content

Instantly share code, notes, and snippets.

@davidsp
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save davidsp/9486972 to your computer and use it in GitHub Desktop.

Select an option

Save davidsp/9486972 to your computer and use it in GitHub Desktop.
useful git commands
git add -u
git add --all
cat .gitignore
git add --force
--update from origin
git pull origin
- remove the .git folder and start again
rm -rf .git
--new branch
$ git checkout -b iss53
Switched to a new branch 'iss53'
This is shorthand for:
$ git branch iss53
$ git checkout iss53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment