diff options
| author | Anton Bobov <anton@bobov.name> | 2025-12-25 14:31:02 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2025-12-25 14:31:02 +0500 |
| commit | 17880d4a73709eb9df31e418cbe0d3524dfd197e (patch) | |
| tree | 076ed18931c2a295d8ad36d2bd9bdfc827d97786 /files | |
| parent | 1f9a5e5d2184db02a8df1ae7a2b04a91364c8f3c (diff) | |
git: update aliases
Diffstat (limited to 'files')
| -rw-r--r-- | files/.gitconfig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/files/.gitconfig b/files/.gitconfig index 12ae541..cb96644 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -74,6 +74,7 @@ kb = !sh -c 'gitk --branches' - lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%aN>%Creset' --abbrev-commit --date=relative l = "!git lg -10" + rl = reflog --date=relative f = !sh -c 'git branch | grep -F "feature/$1" | xargs -r -n 1 git co' - st = status stashlist = stash list --date=short @@ -98,7 +99,8 @@ rc = rebase --continue ra = rebase --abort rx = rebase --exec - prebase = rebase -x 'chronic pre-commit run --from-ref HEAD~ --to-ref HEAD' + pre-commit-last = !sh -c 'pre-commit run --from-ref HEAD~ --to-ref HEAD' + prebase = rebase -x 'chronic git pre-commit-last' # Gitlab merge requests helpers mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' - |
