Skip to content

Instantly share code, notes, and snippets.

@mortymacs
Created November 15, 2025 11:46
Show Gist options
  • Select an option

  • Save mortymacs/2fe0ec3807b40715520463a3449ee1fa to your computer and use it in GitHub Desktop.

Select an option

Save mortymacs/2fe0ec3807b40715520463a3449ee1fa to your computer and use it in GitHub Desktop.
[alias]
conflicts = "diff --name-only --diff-filter=U --relative"
del-all = "!f(){ git branch | grep \"$1\" | xargs git branch -D; }; f"
del-local = "!f(){ git branch | grep \"$1\" | xargs git branch -d; }; f"
restore-from-history = "!f(){ git checkout \"$(git rev-list -n 1 HEAD -- $1)\"^ -- \"$1\"; }; f"
show-files = "diff-tree --no-commit-id --name-only -r"
ss = "status --short"
status-lines = "diff --stat"
tree = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'"
who = "git-who"
[delta]
dark = true
features = "decorations mort"
line-numbers = true
merge-conflict-begin-symbol = ""
merge-conflict-end-symbol = ""
side-by-side = true
[diff]
algorithm = "histogram"
[format]
signoff = true
[help]
autocorrect = 10
[pager]
blame = "delta"
diff = "delta"
log = "delta"
reflog = "delta"
show = "delta"
[push]
default = "current"
[user]
email = "[email protected]"
name = "Morteza NourelahiAlamdari"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment