Tuesday, 28 October 2014

Creating a right-click menu to open with Sublime Text

http://superuser.com/questions/412312/can-i-right-click-a-folder-in-windows-7-and-choose-open-with-sublime-text

The one I used involved downloading OpenWithSublimeTextAsAdmin.bat from here saving it to the sublime text folder and running it. 

Other option seems to be registry editing manually. 

Sunday, 12 October 2014

Git: find only the names of files which are different across two commits/branches

git diff branch1..branch2 --name-only

The --name-only also works with git show

Git: diff between two branches for a file

git diff branch1..branch2 -- file_path_from_base_of_repo

In the diff output "a" will be the version of the file in branch1 and "b" will the file in branch2

Wednesday, 8 October 2014

Create a git branch and push it upstream

If you want to create a local branch and then push it upstream so that changes are tracked between the remote (upstream) branch and the local branch, then do this: (git 1.7.0+)

$ git checkout -b feature_branch_name
... edit files, add and commit ...
$ git push -u origin feature_branch_name
Reference

Monday, 6 October 2014

Location of outlook PST file

When moving from one computer to another, to carry old emails along, you'll need to locate the PST file in the old computer, move it across to the new computer and then tell outlook on the new computer about the PST file.
To do all this, go here: File -> Info -> Account Settings -> Data Files

See the following screenshots: