summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2017-10-17 18:12:57 -0600
committermediocregopher <mediocregopher@gmail.com>2021-10-03 17:22:56 -0600
commit07ab3a77b44944a1ac234fbd717391f36370416e (patch)
treeedd959740bf9256bf38e9c2e3cacda8c555f8c56 /base
initial public commit
Diffstat (limited to 'base')
-rw-r--r--base/gitconfig29
1 files changed, 29 insertions, 0 deletions
diff --git a/base/gitconfig b/base/gitconfig
new file mode 100644
index 0000000..2d4a1ea
--- /dev/null
+++ b/base/gitconfig
@@ -0,0 +1,29 @@
+[push]
+ default = simple
+
+[alias]
+ #Shows diff in log
+ ll = log --stat --abbrev-commit
+
+ #Show all aliases
+ alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\t=> \\2/' | sort
+
+ #Full sync of local database
+ sync = fetch -pv --all
+
+ cam = commit -a -m
+ lug = log --color --graph --date=short --pretty=format:'%Cgreen%cd (%cr)%Creset %C(bold blue)%an%Creset %Cred%h%Creset -%C(yellow)%d%Creset %s' --abbrev-commit
+ purr = pull --rebase
+ chk = checkout
+ from = !git fetch origin master && git rebase -i origin/master
+
+ # print local branches and their last commit times
+ blanch = for-each-ref --sort=authordate --format '%(HEAD)%(align:left,40)%(refname:short)%(end) | %(align:left,20)%(authordate:iso)%(end) | %(subject)' refs/heads
+
+ # checkout master and delete previously checked out branch
+ close = !git checkout master && git branch -D @{-1}
+
+[color]
+ branch = auto
+ diff = auto
+ status = auto