-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigGit.sh
executable file
·24 lines (21 loc) · 1.04 KB
/
ConfigGit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# configure git behaviors and colorizations:
git config --global core.editor "nano"
git config --global push.default simple
git config --global pull.rebase true
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
git config --global user.name "Wayne Ross"
git config --global user.email "[email protected]"
# color list from http://shallowsky.com/blog/programming/gitcolors.html
git config --global color.interactive.prompt 'red bold'
git config --global color.diff.old 'red bold'
git config --global color.diff.new 'green bold'
git config --global color.diff.frag 'cyan bold'
git config --global color.status.added 'red bold'
git config --global color.status.updated 'green bold'
git config --global color.status.changed 'red bold'
git config --global color.status.untracked 'red bold'
git config --global color.status.nobranch 'red bold'
# if nano isn't available, use Notepad++:
#echo '#!/bin/sh' > ~/bin/nano
#echo '"C:\Program Files (x86)\Notepad++\notepad++.exe" -nosession "$@"' >> ~/bin/nano
#chmod 755 nano