Skip to content

Commit

Permalink
git: fix bd, tweak default
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed Jan 4, 2025
1 parent c605b99 commit ce50e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

[alias]
# keep-sorted start
bd = !branch="$(git branch --show-current)" && git checkout $(git default) && git branch -D "${1:-$branch}"
bd = !branch="$(git branch --show-current)" && git checkout $(git default) && git branch -D "${branch:-$1}"
cm = commit
co = checkout
cp = cherry-pick
dc = diff --cached
default = !git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
default = !git symbolic-ref --short refs/remotes/origin/HEAD | sed 's@^origin/@@'
desc = commit --allow-empty -n
emerge = !git add -A . && git amend -n && git pushm --force-with-lease
empty = desc -m "empty commit"
Expand Down

0 comments on commit ce50e38

Please sign in to comment.