Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save todiadiyatmo/b6c4599ccfb8deffce1c to your computer and use it in GitHub Desktop.

Select an option

Save todiadiyatmo/b6c4599ccfb8deffce1c to your computer and use it in GitHub Desktop.
Git
## Track checkout remote branch
```
git checkout --track origin/serverfix
```
## Git track remote from current branch
```
git branch -u origin/serverfix
```
## Git init submodule
```
git submodule update --init --recursive
```
## Reset
http://stackoverflow.com/questions/9529078/how-do-i-use-git-reset-hard-head-to-revert-to-a-previous-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment