|
2 | 2 |
|
3 | 3 | [init]
|
4 | 4 | defaultBranch = main
|
5 |
| -[push] |
6 |
| - default = current |
7 |
| - followTags = true |
| 5 | +[status] |
| 6 | + aheadBehind = true |
| 7 | + submoduleSummary = true |
| 8 | + showUntrackedFiles = all |
| 9 | + showStash = true |
| 10 | + renames = copies |
| 11 | +[branch] |
| 12 | + autoSetupMerge = always |
| 13 | + autoSetupRebase = always |
| 14 | + sort = -committerdate |
8 | 15 | [fetch]
|
9 | 16 | prune = true
|
10 | 17 | writeCommitGraph = true
|
11 | 18 | [pull]
|
12 |
| - rebase = true |
| 19 | + rebase = true # merges |
| 20 | +[push] |
| 21 | + default = upstream |
| 22 | + followTags = true |
| 23 | + autoSetupRemote = true |
13 | 24 | [rebase]
|
| 25 | + autoStash = true |
14 | 26 | updateRefs = true
|
15 |
| -[branch] |
16 |
| - autosetupmerge = always |
17 |
| - autosetuprebase = always |
18 |
| - sort = -committerdate |
| 27 | + missingCommitsCheck = error |
| 28 | +[commit] |
| 29 | + cleanup = strip |
| 30 | + template = ~/.gitmessage |
19 | 31 | [diff]
|
20 | 32 | tool = vscode
|
21 | 33 | renames = copies
|
| 34 | + mnemonicPrefix = true |
| 35 | + submodule = log |
22 | 36 | [difftool "vscode"]
|
23 | 37 | cmd = code --wait --diff "$REMOTE" "$LOCAL"
|
24 | 38 | [merge]
|
25 | 39 | tool = vscode
|
| 40 | + autoStash = true |
| 41 | +[mergetool] |
| 42 | + keepBackup = false |
| 43 | + keepTemporaries = false |
| 44 | + writeToTemp = true |
| 45 | + prompt = false |
26 | 46 | [mergetool "vscode"]
|
27 | 47 | cmd = code --wait --merge "$REMOTE" "$LOCAL" "$BASE" "$MERGED"
|
28 | 48 | trustExitCode = true
|
29 |
| -[user] |
30 |
| - name = Vladyslav Dukhin |
31 |
| - |
32 |
| -[credential] |
33 |
| - helper = osxkeychain |
34 | 49 | [core]
|
35 | 50 | editor = code --wait
|
36 | 51 | pager = less --quit-if-one-screen
|
|
41 | 56 | ui = auto
|
42 | 57 | [column]
|
43 | 58 | ui = auto
|
44 |
| -[commit] |
45 |
| - cleanup = strip |
46 |
| - template = ~/.gitmessage |
| 59 | +[user] |
| 60 | + name = Vladyslav Dukhin |
| 61 | + |
| 62 | +[credential] |
| 63 | + helper = osxkeychain |
| 64 | +[grep] |
| 65 | + break = true |
| 66 | + heading = true |
| 67 | + lineNumber = true |
| 68 | + extendedRegexp = true |
| 69 | +[log] |
| 70 | + abbrevCommit = true |
| 71 | + follow = true |
| 72 | + showSignature = true |
| 73 | +[tag] |
| 74 | + sort = version:refname |
| 75 | +[versionsort] |
| 76 | + suffix = -pre |
| 77 | + suffix = .pre |
| 78 | + suffix = -alpha |
| 79 | + suffix = .alpha |
| 80 | + suffix = -beta |
| 81 | + suffix = .beta |
| 82 | + suffix = -rc |
| 83 | + suffix = .rc |
47 | 84 | [rerere]
|
48 | 85 | # Reuse Recorded Resolution
|
49 | 86 | enabled = true
|
|
53 | 90 | port = 4321
|
54 | 91 | [alias]
|
55 | 92 | # ex. (git s)
|
56 |
| - s = status --show-stash --ahead-behind --renames |
| 93 | + s = status |
57 | 94 | # ex. (git c)
|
58 | 95 | c = commit --signoff
|
59 | 96 | # ex. (git ca)
|
|
67 | 104 | # pushes changes to the remote branch of the same name
|
68 | 105 | # ex. (git p)
|
69 | 106 | p = push origin HEAD # use --signed flag
|
70 |
| - fp = push --force-with-lease origin HEAD |
| 107 | + fp = push --force-with-lease --force-if-includes origin HEAD |
71 | 108 | # outputs the log graph of git history with statistics
|
72 | 109 | # ex. (git l)
|
73 |
| - l = log --oneline --graph --decorate --stat --show-signature |
| 110 | + l = log --oneline --graph --decorate --date=relative --stat |
74 | 111 | # stash the changes in a dirty working directory away, include untracked
|
75 | 112 | # ex. (git st "some awesome code")
|
76 | 113 | st = stash push --include-untracked --message
|
|
82 | 119 | # outputs a condensed summary of the working directory against the branch
|
83 | 120 | # ex. (git summary, git summary main)
|
84 | 121 | summary = diff --word-diff --compact-summary
|
| 122 | + # undo last commit but keep changes in stage |
| 123 | + undo = reset --soft HEAD~1 |
| 124 | + # ex. (git aliases) |
| 125 | + aliases = config --get-regexp alias |
85 | 126 | # git maintenance start
|
0 commit comments