Thursday, 25 September 2014

Sublime Text - reveal in sidebar

http://julianhigman.com/blog/2013/07/23/sublime-text-3-keyboard-shortcut-to-reveal-file-in-sidebar/

  1. Right click on the file in the editor
  2. Reveal in Side Bar.

To set a shortcut key:
  1. Preferences 
  2. Key Bindings (User)


edit the file as follow:
[
 { "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"}
]


Wednesday, 17 September 2014

Git - remove / discard changes

If the changes have been commited to local branch but not yet push --

Reset local branch to repository:
git reset origin/develop
git reset HEAD


Remove / Discard unstaged changes:
git clean -df
git checkout -- [file]


Documentation for git clean:
http://git-scm.com/docs/git-clean