Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com git: add alias for fast switch to main and master branches, 1 year ago
olexsmir@gmail.com git: add alias for fast switch to main and master branches, 1 year ago
| 1 | # vim: ft=gitconfig |
| 2 | |
| 3 | [user] |
| 4 | name = Oleksandr Smirnov |
| 5 | email = olexsmir@gmail.com |
| 6 | signingkey = /home/olex/.ssh/id_ed25519.pub |
| 7 | |
| 8 | [gpg] |
| 9 | program = gpg2 |
| 10 | format = ssh |
| 11 | |
| 12 | [core] |
| 13 | editor = nvim |
| 14 | pager = delta |
| 15 | quotePath = false |
| 16 | |
| 17 | [init] |
| 18 | defaultBranch = "main" |
| 19 | |
| 20 | [alias] |
| 21 | push-force = push --force-with-lease |
| 22 | pu = push |
| 23 | l = log --oneline --decorate |
| 24 | lg = log --oneline --graph --all |
| 25 | st = status -sb |
| 26 | cm = commit -m |
| 27 | sw = switch |
| 28 | unfuck = reset HEAD~1 --soft |
| 29 | main = !git switch master 2>/dev/null || git switch main |
| 30 | |
| 31 | [interactive] |
| 32 | diffFilter = delta --color-only |
| 33 | |
| 34 | [merge] |
| 35 | conflictstyle = diff3 |
| 36 | |
| 37 | [rerere] |
| 38 | enabled = true |
| 39 | |
| 40 | [diff] |
| 41 | colorMoved = default |
| 42 | |
| 43 | [delta] |
| 44 | features = tokyonight |
| 45 | |
| 46 | true-color = always |
| 47 | navigate = true |
| 48 | light = false |
| 49 | keep-plus-minus-markers = true |
| 50 | line-numbers = true |
| 51 | file-decoration-style = none |
| 52 | |
| 53 | [delta "tokyonight"] |
| 54 | minus-style = syntax "#37222c" |
| 55 | minus-non-emph-style = syntax "#37222c" |
| 56 | minus-emph-style = syntax "#713137" |
| 57 | minus-empty-line-marker-style = syntax "#37222c" |
| 58 | line-numbers-minus-style = "#b2555b" |
| 59 | plus-style = syntax "#20303b" |
| 60 | plus-non-emph-style = syntax "#20303b" |
| 61 | plus-emph-style = syntax "#2c5a66" |
| 62 | plus-empty-line-marker-style = syntax "#20303b" |
| 63 | line-numbers-plus-style = "#266d6a" |
| 64 | line-numbers-zero-style = "#3b4261" |
| 65 | |
| 66 | [column] |
| 67 | ui = auto |
| 68 | |
| 69 | [branch] |
| 70 | sort = -committerdate |
| 71 | |
| 72 | [commit] |
| 73 | gpgSign = true |
| 74 | |
| 75 | [fetch] |
| 76 | writeCommitGraph = true |