Skip to content

Commit

Permalink
git config
Browse files Browse the repository at this point in the history
  • Loading branch information
n1amr committed Nov 23, 2024
1 parent f6e3e47 commit 98ddc8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
rbd = rebase-default
rbdl = rebase-default-latest
rbdmb = rebase-default-merge-base
rbe = rebase --edit-todo
rbon = rebase-on
rbsp = rebase --show-current-patch
rbu = rebase-upstream
rl = log --walk-reflogs --pretty=reflog-short
rll = log --walk-reflogs --pretty=reflog-long
Expand Down Expand Up @@ -143,7 +145,7 @@ Committer Date: %ci %C(green)(%cr)%C(reset)%n\
Reflog Selector: %C(yellow)%gd%C(reset)%n\
Reflog Subject: %gs%C(reset)%n\
%n%w(0,4,4)%B%w(0,0,0)%-
reflog-short = %C(reset)%C(bold red)%h <- %p%C(reset) - %C(yellow)%gd%C(dim white)%d%C(reset) - %ci %C(green)(%cr)%C(reset): %gs
reflog-short = %C(reset)%C(bold red)%h < %p%C(reset) = %C(yellow)%gd%C(reset) @ %C(green)%ci (%cr)%C(reset) ? %C(bold blue)%gs%C(reset): %s%C(dim white)%d%C(reset)
reflog-long = %C(bold white)--------------------------------------------------------------------------------%n%C(reset)\
Reflog Subject: %gs%C(reset)%n\
Reflog Selector: %C(yellow)%gd%C(dim white)%d%C(reset)%n\
Expand All @@ -165,6 +167,7 @@ Committer Date: %ci %C(green)(%cr)%C(reset)%n\
tool = vimdiff

[merge]
conflictStyle = diff3
tool = customVimMergeToolMin # vimdiff

[mergetool "customVimMergeTool"]
Expand All @@ -174,6 +177,13 @@ Committer Date: %ci %C(green)(%cr)%C(reset)%n\
# cmd = vim -d -f --cmd 'let g:isMergeTool = 1' $MERGED
cmd = vim -d -f --cmd 'let g:isMergeTool = 1' -c '4wincmd w | wincmd J | only | nnoremap ZZ :w \\| qa<CR>' $LOCAL $BASE $REMOTE $MERGED

[rebase]
autoSquash = true
forkPoint = true
rescheduleFailedExec = true
stat = true
updateRefs = true # Automatically force-update any branches that point to commits that are being rebased. Any branches that are checked out in a worktree are not updated in this way.

[grep]
linenumber = true

Expand Down
1 change: 1 addition & 0 deletions config/vscode/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@
"Proto",
"Protobuf",
"pycache",
"reflog",
"Renderable",
"RNSVG",
"screenshotting",
Expand Down

0 comments on commit 98ddc8b

Please sign in to comment.