diff options
| author | Anton Bobov <anton@bobov.name> | 2022-11-27 16:26:00 +0100 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2022-11-27 16:26:00 +0100 |
| commit | 9ecbfe6c68fb277dbe4d34fcde7bcb075b84b565 (patch) | |
| tree | 2d44abfaef880034d5701413ca846a773d908492 /files/.gitconfig | |
| parent | f110554ac9f4e26548b766f9afc1f5902b5fd950 (diff) | |
Git aliases
Diffstat (limited to 'files/.gitconfig')
| -rw-r--r-- | files/.gitconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/files/.gitconfig b/files/.gitconfig index 9d3889f..120b464 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -72,6 +72,10 @@ whoami = config user.email fugitive = mergetool --tool fugitive clean-branches = !sh -c 'git branch --merged | grep -v '^*' | fzf -m | xargs -rp git branch -d' + co-before = !sh -c 'git rev-list -1 --before="$@" HEAD | xargs -r git checkout' - + ri = rebase --interactive + rc = rebase --continue + ra = rebase --abort # Gitlab merge requests helpers mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' - |
