|
| 1 | +# Configure P4Merge |
1 | 2 | git config --global diff.tool p4merge
|
2 | 3 | git config --global difftool.p4merge.cmd "p4merge.exe \$LOCAL \$REMOTE"
|
3 | 4 | git config --global merge.tool p4merge
|
4 | 5 | git config --global mergetool.p4merge.cmd "p4merge.exe \$BASE \$LOCAL \$REMOTE \$MERGED"
|
5 | 6 | git config --global mergetool.p4merge.trustExitCode true
|
6 | 7 | git config --global mergetool.p4merge.keepBackup false
|
| 8 | + |
| 9 | +# Bare minimum aliases |
| 10 | +git config --global alias.a 'add -A' |
| 11 | +git config --global alias.b 'branch' |
| 12 | +git config --global alias.c 'checkout' |
| 13 | +git config --global alias.cb 'checkout -b' |
| 14 | +git config --global alias.pr 'pull --rebase' |
| 15 | +git config --global alias.pom 'push origin master' |
| 16 | +git config --global alias.rc 'rebase --continue' |
| 17 | +git config --global alias.ra 'rebase --abort' |
| 18 | +git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" |
| 19 | +git config --global alias.lga "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all" |
| 20 | + |
| 21 | +# Colorization |
| 22 | +git config --global color.branch "auto" |
| 23 | +git config --global color.diff "auto" |
| 24 | +git config --global color.status "auto" |
| 25 | +git config --global color.branch.current "yellow reverse" |
| 26 | +git config --global color.branch.local "yellow" |
| 27 | +git config --global color.branch.remote "green" |
| 28 | +git config --global color.diff.meta "yellow bold" |
| 29 | +git config --global color.diff.frag "magenta bold" |
| 30 | +git config --global color.diff.old "red bold" |
| 31 | +git config --global color.diff.new "green bold" |
| 32 | +git config --global color.status.added "yellow" |
| 33 | +git config --global color.status.changed "green" |
| 34 | +git config --global color.status.untracked "cyan" |
0 commit comments