-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
executable file
·30 lines (29 loc) · 1.36 KB
/
gitconfig
File metadata and controls
executable file
·30 lines (29 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set +H
git config --global alias.cleanup "!git branch --merged | grep -v '\\*\\|master\\|develop\\|development' | xargs -n 1 git branch -d"
git config --global alias.co checkout
git config --global alias.cob 'checkout -b'
git config --global alias.cod 'checkout develop'
git config --global alias.com 'checkout master'
git config --global alias.dfc 'diff --cached'
git config --global alias.dfw 'diff --ignore-space-change'
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.pushf "push --force-with-lease"
git config --global alias.s status
git config --global alias.sa 'stash apply'
git config --global branch.autosetuprebase always
git config --global branch.master.rebase true
git config --global color.diff auto
git config --global core.editor vim
git config --global core.excludesfile ~/.gitignore_global
git config --global credential.helper osxkeychain
git config --global merge.tool opendiff
git config --global mergetool.keepbackup false
git config --global push.default current
git config --global rerere.enabled true
git config --global user.name 'Alkesh Vaghmaria'
if ! git config --global user.email 1>/dev/null; then
echo "Enter email address used for git config:"
read gitemail
git config --global user.email $gitemail
fi