diff options
| author | 2026-04-17 10:53:37 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:53:37 +0100 | |
| commit | 6a448daf5fedff456d1be5b0e58ada5dbe12d637 (patch) | |
| tree | 700c9a4923c135e7098dd6012739a741adf6b7ca | |
| parent | 118d166419760939d0784bed66efea7c42a16157 (diff) | |
| download | dotfiles-6a448daf5fedff456d1be5b0e58ada5dbe12d637.tar.gz dotfiles-6a448daf5fedff456d1be5b0e58ada5dbe12d637.tar.bz2 dotfiles-6a448daf5fedff456d1be5b0e58ada5dbe12d637.zip | |
refactor: clean up git aliases
- Remove 'stage = add' — redundant with 'a = add'.
- Add 'cp = cherry-pick' — common operation without a shortcut.
- Add 'lg = log --graph --oneline' — visual branch graph.
| -rw-r--r-- | home/.config/git/config | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/home/.config/git/config b/home/.config/git/config index bba5ed3..e59a2dc 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -91,6 +91,7 @@ bd = branch -D c = commit ca = commit --amend --no-edit + cp = cherry-pick d = diff dft = -c diff.external=difft diff dl = -c diff.external=difft log -p --ext-diff @@ -104,6 +105,7 @@ fp = push --force-with-lease gone = !git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D l = log + lg = log --graph --oneline lm = log --pretty=medium m = merge mt = mergetool @@ -114,7 +116,6 @@ rt = restore s = status st = status --no-short - stage = add staged = diff --cached sub = submodule subf = submodule foreach |
