Skip to content

Instantly share code, notes, and snippets.

git config --global core.eol lf
git config --global core.autocrlf input
@bkrauska
bkrauska / gist:9742260
Last active August 4, 2022 06:57
DiffMerge git mergetool & difftool setup
Install http://download-us.sourcegear.com/DiffMerge/4.2.0/DiffMerge_4.2.0.697.stable_x64.msi
// this is an adaptation of http://adventuresincoding.com/2010/04/how-to-setup-git-to-use-diffmerge
Then run the following commands from the git bash
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd "sgdm --merge --result=\$MERGED \$LOCAL \$BASE \$REMOTE"
@bkrauska
bkrauska / find
Last active November 21, 2016 08:55
Unix Commands
// find all files by name in current and sub-directories
find -name "file.name"
// find all files by name case insensitive in current and sub-directories
find -iname "file.name"
// find all files by name not matching in current and sub-directories
find -not -name "file.name"
// find files by size
@bkrauska
bkrauska / Git Branching
Created January 11, 2011 16:19
Git Branching Cheat Sheet
// list local branches
git branch
// list remote branches
git branch -r
// list all branches
git branch -a
// create new branch