From 1b806b71074378462f9e90efbafbf125aa195106 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 29 May 2021 16:10:23 +0200 Subject: [PATCH] move gitconfig --- general/.config/git/config | 26 ++++++++++++++++++++++++++ general/.gitconfig | 10 ---------- 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 general/.config/git/config delete mode 100644 general/.gitconfig diff --git a/general/.config/git/config b/general/.config/git/config new file mode 100644 index 0000000..99a1b19 --- /dev/null +++ b/general/.config/git/config @@ -0,0 +1,26 @@ +[user] + name = h7x4 + email = h7x4abk3g@protonmail.com + +[alias] + uncommit = "reset --soft HEAD^" + rev = "checkout HEAD -- " + revall = "checkout ." + unadd = "rm --cached " + delete-merged = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" + + graph = "log --graph --abbrev-commit --decorate --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" + graphv = "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" + g = !"git graph" + +[color] + ui = auto + +[github] + user = h7x4abk3g + +[filter "lfs"] + required = true + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + clean = git-lfs clean -- %f diff --git a/general/.gitconfig b/general/.gitconfig deleted file mode 100644 index 0d8db2f..0000000 --- a/general/.gitconfig +++ /dev/null @@ -1,10 +0,0 @@ -[alias] - - graph = log --graph --abbrev-commit --decorate --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 - - graphv = 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 - - g = !"git graph" - - uncommit = reset --soft HEAD^ -