Skip to content

Commit

Permalink
git: rewrite log aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Jul 23, 2024
1 parent 0f9a590 commit 939e068
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
get-gone = "!git branch -av | grep '\\[gone]' #"
gh = "!git clone https://github.com/${1}.git #"
h = help
l = "!git ll origin/$(git default-branch)~1..."
ll = log --oneline
lob = ll --graph --branches --color=always
l = log --oneline --show-linear-break='Non-linear history:'
lob = log --oneline --graph --branches --color=always
nb = "!git switch -c lindhe/${1:?} #"
nuke-branch = "!git worktree remove ${*} && git branch -D ${*} #"
nwt = "!WTD=~/git/worktree/${1:?}; (git branch -l ${1:?} | grep -q ${1:?}) || echo ERROR: Branch ${1:?} not found 1>&2 && mkdir -p ${WTD} && git worktree add ${WTD} ${1:?} && echo ${WTD} #"
Expand Down

0 comments on commit 939e068

Please sign in to comment.