Skip to content

Commit

Permalink
git: Improve log config and related alias
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Jul 16, 2024
1 parent 23a25e3 commit 3e993cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
gh = "!git clone https://github.com/${1}.git #"
h = help
l = "!git ll origin/$(git default-branch)~1..."
ll = log --oneline --decorate
lob = log --oneline --decorate --graph --branches --color=always
log = log --decorate
ll = log --oneline
lob = ll --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 Expand Up @@ -91,3 +90,6 @@
path = ~/.config/git/wsl.gitconfig
[init]
defaultBranch = master
[log]
decorate = short
initialDecorationSet = all

0 comments on commit 3e993cb

Please sign in to comment.