Skip to content

Instantly share code, notes, and snippets.

@jonancm
Last active February 6, 2025 08:35
Show Gist options
  • Save jonancm/08b6de65c1b802c8c45204512dccad0a to your computer and use it in GitHub Desktop.
Save jonancm/08b6de65c1b802c8c45204512dccad0a to your computer and use it in GitHub Desktop.
Git configuration
[alias]
autosquash = rebase -i --autosquash
bcl = changelist HEAD~^ HEAD
bdf = diff HEAD~^ HEAD
br = branch
changelist = diff --name-only
cl = changelist
co = checkout
df = diff
dfs = diff --staged
dt = difftool
find-file = lg --all --full-history --
fixup = commit --fixup
lg = log --pretty='%C(red)%h %C(cyan)%ad %C(green)%an %Creset%s %C(yellow)%d' --date='format:%c'
mt = mergetool
scl = changelist --staged
st = status --short
[core]
pager = delta
[init]
defaultBranch = main
[diff]
tool = meld
[merge]
tool = meld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment