Skip to content

Instantly share code, notes, and snippets.

@alienlebarge
Last active June 24, 2016 05:42
Show Gist options
  • Save alienlebarge/619a6c8d2dc5ee703b0fb0e5c79ea6bc to your computer and use it in GitHub Desktop.
Save alienlebarge/619a6c8d2dc5ee703b0fb0e5c79ea6bc to your computer and use it in GitHub Desktop.
Git Cheatsheet

Git Cheatsheet

Checkout branches

cedricaellen at MacBook-Air-de-Cedric in ~/Projects/foehn on master
$ g branches
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/gh-pages
  remotes/origin/master
  remotes/origin/refactor-gulp

cedricaellen at MacBook-Air-de-Cedric in ~/Projects/foehn on master
$ git checkout --track origin/refactor-gulp
Branch refactor-gulp set up to track remote branch refactor-gulp from origin.
Switched to a new branch 'refactor-gulp'

Clone in s specific folder

$ git clone https://gist.github.com/619a6c8d2dc5ee703b0fb0e5c79ea6bc.git git-cheatsheet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment