From 02f733c2a261a9902e1a5cd2ebc9281266faa52b Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 31 Jan 2023 22:28:46 +0100 Subject: [PATCH] Add .gitconfig --- .gitconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitconfig diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..db14c5c --- /dev/null +++ b/.gitconfig @@ -0,0 +1,27 @@ +[alias] + s = status + ss = status -s + sb = status -s -b + l = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate HEAD + lb = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate --branches + lr = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate --remotes + lt = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --decorate --tags + ll = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar) : %s\" --graph --branches --remotes --tags --decorate + llns = log --pretty=format:\"%C(auto) %d : %h - %an. %as (%ar)\" --graph --branches --remotes --tags --decorate + lg = log --pretty=format:\"%C(auto) %d : %h (%G?) - %an. %ar : %s\" --graph --branches --remotes --tags --decorate + lo = log --oneline + c = commit --no-gpg-sign + hash = log --format=\"%H\" -1 + hash-time = log --format=\"%H %ct\" -1 + branch-name = "!git rev-parse --abbrev-ref HEAD" + push-u = "!git push -u origin $(git branch-name)" + push-temp = "!git push -f origin $(git branch-name):refs/temp/$(git branch-name)" + push-delete-temp = "!git push origin :refs/temp/$(git branch-name)" +[push] + default = upstream + autoSetupRemote = true +[advice] + detachedHead = false + addIgnoredFile = false +[diff] + algorithm = histogram