These days i read most books on my ipad. The problem is that iTunes does not seem to add pdf files when i choose ‘Add Folder’ to the library. So here is a small application that adds them one by one (way too lazy/unmotivated to do this by hand).
Tag Archives: git
Here are some tips that i want to share with fellow .Net developers that use git on cygwin.
First of all i defined some aliases in my ~/.bashrc:
# open explorer in the current working directory alias explorer='explorer.exe "`cygpath -aw \"$PWD\"`"' # invoke MSBuild alias msbuild='/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe'
Because i don’t like the TFS source control story i use git-tfs. As a .Net developer you want to add the following to your .git/info/exclude file:
#OS junk files [Tt]humbs.db *.DS_Store #Visual Studio files *.[Oo]bj *.exe *.pdb *.user *.aps *.pch *.vspscc *.vssscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.[Cc]ache *.ilk *.log *.lib *.sbr *.sdf ipch/ obj/ [Bb]in [Dd]ebug*/ [Rr]elease*/ Ankh.NoLoad #Tooling _ReSharper*/ *.resharper [Tt]est[Rr]esult* #Subversion files .svn
Whenever i work online i usually run these two commands consecutively: git -a -m “commit message” and git-tfs checkin -m “commit message”. Here is a small ~/bin/commit script that combines these:
#!/bin/bash git commit -a -m "$1"; git-tfs checkin -m "$1";
Last couple of weeks i have been using Git on cygwin and i got very satisfying results out of it. One thing that i wanted to tweak was the ability to use WinMerge to compare files. Here is how i do it:
Here is my ~/.gitconfig:
[user] name = Tim Van Wassenhove email = email@example.com 1 external = "~/bin/git-diff-wrapper.sh"
Here is my ~/bin/git-diff-wrapper.sh (it uses cygpath to translate the paths):
#!/bin/sh "/cygdrive/c/Program Files/WinMerge/WinMergeU.EXE" /e /ub /dl other /dr local "`cygpath -aw $1`" "`cygpath -aw $2`" "`cygpath -aw $5`"
And now we’re good to go