aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-07 10:42:41 +0900
committernsfisis <nsfisis@gmail.com>2021-11-07 10:42:41 +0900
commit6b8122510e4d93098e07d7e34f5b2b3337fcef5c (patch)
tree49fd481546eb9bbd3ac5a5d688746eec140b46f0
parentb5601e86cc6aa8511722a2b450e1540e7af92f2f (diff)
downloaddotfiles-6b8122510e4d93098e07d7e34f5b2b3337fcef5c.tar.gz
dotfiles-6b8122510e4d93098e07d7e34f5b2b3337fcef5c.tar.zst
dotfiles-6b8122510e4d93098e07d7e34f5b2b3337fcef5c.zip
.gitconfig: rename alias "cb" to "current-branch"
-rw-r--r--.gitconfig8
1 files changed, 4 insertions, 4 deletions
diff --git a/.gitconfig b/.gitconfig
index 0328c96..34b7ff2 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -45,7 +45,7 @@
a = add
ap = add -p
b = branch
- cb = rev-parse --abbrev-ref HEAD
+ current-branch = rev-parse --abbrev-ref HEAD
c = commit
fixup = commit --fixup
amend = commit --amend --no-edit
@@ -92,9 +92,9 @@
m = merge
mc = merge --continue --no-edit
mm = mergetool
- pullu = "!git pull upstream $(git cb) --ff"
- pullo = "!git pull origin $(git cb) --ff"
- pusho = "!git push origin $(git cb)"
+ pullu = "!git pull upstream $(git current-branch) --ff"
+ pullo = "!git pull origin $(git current-branch) --ff"
+ pusho = "!git push origin $(git current-branch)"
cpick = cherry-pick
cpickc = cherry-pick --continue --no-edit
empty = commit --allow-empty