-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
19 lines (17 loc) · 878 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# git history trees
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
# add 'git sync' alias which is a pull, add -A, commit, push combination
[alias]
sync = "!f(){ \
git fetch && \
git add -A && \
git commit -m \"$1\" && \
git rebase && \
git push; \
}; f"
# sets the global .gitignore file to the one within the gitProfiles directory (to exclude things like .DS_Store universally)
[core]
excludesfile = ~/gitProfiles/.gitignore