Skip to content

Instantly share code, notes, and snippets.

@algonzalez
Last active August 29, 2015 14:13
Show Gist options
  • Save algonzalez/0cc60a5589b814f03560 to your computer and use it in GitHub Desktop.
Save algonzalez/0cc60a5589b814f03560 to your computer and use it in GitHub Desktop.
git config settings
git config --global user.name "{your name}"
git config --global user.email "{yout email address}"
REM set up Notepad++ as the editor of choice
git config --global core.editor "'{path to notepad++}\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
REM set up WinMerge as the tool to use when calling "git difftool"
git config --global diff.tool winmerge
git config --global difftool.winmerge.cmd "'{path to winmergeU.exe}\winmergeU.exe' -e -u -wl -maximize \"$LOCAL\" \"$REMOTE\""
git config --global difftool.prompt false
REM set up some useful aliases
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.type "cat-file -t"
git config --global alias.dump "cat-file -p"
git config --global alias.ls "ls-tree --full-tree -r HEAD --name-only"
git config --global alias.ls.all "ls-tree --full-tree -r HEAD"
git config --global alias.ls.alias "config --global -l"
REM Some helpfull bash aliases
REM # Git
REM # ---
REM alias git.list.alias="git config --global -l | grep '^alias.'"
REM alias git.list.files="git ls-tree --full-tree -r HEAD --name-only"
REM alias git.list.files.full="git ls-tree --full-tree -r HEAD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment