Skip to content

Commit

Permalink
feat: update git park to last non wip commit
Browse files Browse the repository at this point in the history
- also renames original git unpark alias to git unparkall
  • Loading branch information
cerico committed Jun 15, 2024
1 parent e5b2b2e commit 69b6e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/gitconfig.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
branches = ! git branch --no-merge main --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:reset)' --color=always | column -ts'|' | head -n 10
full = ! git branch --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:reset)' --color=always | column -ts'|'
park = ! git add . && git commit -m \"wip: parking this here for now\"
unpark = !git reset $(git rev-parse main)
unpark = !git reset $(git rev-list --grep='^wip:' --invert-grep -n 1 HEAD)
unparkall = !git reset $(git rev-parse main)
last = show HEAD
[push]
autoSetupRemote = true
Expand Down

0 comments on commit 69b6e54

Please sign in to comment.