summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-09-17 11:08:11 -0400
committerJesse Luehrs <doy@tozt.net>2023-09-17 11:08:11 -0400
commitd72c1614d26e1a54c012bfeff8f5dbc327b9d2af (patch)
tree6c21d3ae278fbebd2b1e5b94a6d179136d973fd5 /config
parente727e366d386cb49590c2c65969817f89583656a (diff)
downloadconf-d72c1614d26e1a54c012bfeff8f5dbc327b9d2af.tar.gz
conf-d72c1614d26e1a54c012bfeff8f5dbc327b9d2af.zip
remove some git aliases i don't use
Diffstat (limited to 'config')
-rw-r--r--config/git/config7
1 files changed, 0 insertions, 7 deletions
diff --git a/config/git/config b/config/git/config
index 851611e..1406069 100644
--- a/config/git/config
+++ b/config/git/config
@@ -2,16 +2,12 @@
email = doy@tozt.net
name = Jesse Luehrs
[alias]
- a = !git amend
aliases = !git config --get-regexp 'alias.*' | perl -nle'/^alias\\.([^ ]*) (.*)/ && printf \"%-15s = %s\\n\", $1, $2'
alias = "!f() { local name=$1; shift; git config --global alias.$name \"$*\"; }; f"
amend = !git add -p && git commit --amend
- bd = "!f() { git choose-branch | head -n1 | xargs --no-run-if-empty git branch -D; }; f"
bda = "!f() { git branch --merged $(git default-branch) --format='%(refname:short)' | grep -v \"^$(git default-branch)$\" | xargs -r git branch -d; }; f"
blame-stats = !~/.bin/git/git-blame-stats
br = for-each-ref --sort=committerdate refs/heads/ --format='%(align:30,left)%(HEAD) %(refname:short)%(end) %(color:magenta)(%(committerdate:relative))'
- choose-branch = "!f() { git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short)' | fzf --height 40% --no-sort --preview='git show {} -q --format=medium'; }; f"
- c = "!f() { git choose-branch | head -n1 | xargs --no-run-if-empty git co; }; f"
cc = cherry-pick
co = checkout
default-branch = !~/.bin/git/git-default-branch
@@ -23,14 +19,11 @@
imerge = !~/.bin/git/git-imerge
info = remote show -n origin
lg = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(bold blue)%aN%Creset %C(magenta)(%ar)%Creset%n%s%n' --abbrev-commit --date=relative --stat=72
- m = "!f() { git co $(git default-branch) && git pull && EDITOR=true git merge --no-ff \"$@\" && git bda; }; f"
pr = !~/.bin/git/git-pr
prune-all = !git remote | xargs -n 1 git remote prune
- pushall = "!f() { for repo in origin github; do git push $repo \"$@\"; done; }; f"
record = !git add -p && git commit --verbose
refix = "!f() { env EDITOR=true git rebase -i \"$@\"; }; f"
re = rebase -i @{u}
- r = !git record
ri = rebase -i
root = !~/.bin/git/git-root
rv = checkout -p