Skip to content

Commit

Permalink
git: update default alias to master or main
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowfx committed Jan 6, 2025
1 parent 15946c2 commit 0adbbe4
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 "${branch:-$1}"
bd = !branch="$(git branch --show-current)" && git default && git branch -D "${branch:-$1}"
cm = commit
co = checkout
cp = cherry-pick
dc = diff --cached
default = !git symbolic-ref --short refs/remotes/origin/HEAD | sed 's@^origin/@@'
default = !git checkout master || git checkout main
desc = commit --allow-empty -n
emerge = !git add -A . && git amend -n && git pushm --force-with-lease
empty = desc -n -m "empty"
Expand Down

0 comments on commit 0adbbe4

Please sign in to comment.