Last active
October 2, 2025 16:03
-
-
Save koderhun/4e9f849f091a5ea79a39a0cf79127648 to your computer and use it in GitHub Desktop.
my default gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = | |
| email = | |
| [alias] | |
| current-branch = "!git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/\\1/'" | |
| a = "!git add . && git s" | |
| ch = "!echo 'Stop using git checkout' && false" | |
| c = commit -S -m | |
| s = status --short --branch | |
| d = diff | |
| l = "!git pull origin $(git current-branch) --rebase" | |
| h = "!git push origin $(git current-branch)" | |
| lh = "!git l && git h" | |
| r = "!git rm $(git ls-files --deleted) && git status" | |
| hf = push --force-with-lease | |
| sw = switch | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| [branch] | |
| autosetuprebase = always | |
| [core] | |
| autocrlf = input | |
| editor = micro | |
| [init] | |
| defaultBranch = main | |
| [gpg] | |
| format = ssh | |
| [commit] | |
| gpgsign = false | |
| [push] | |
| default = current | |
| followtags = true | |
| [rerere] | |
| enabled = true | |
| [diff] | |
| external = difft | |
| algorithm = histogram | |
| colorMoved = true | |
| indentHeuristic = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment