2024-05-10 11:09:53 +02:00
|
|
|
# Copyright (C) 2017 Hong Yongmin <https://revi.xyz>
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2017-05-28 19:41:05 +02:00
|
|
|
[alias]
|
2024-05-09 13:43:01 +02:00
|
|
|
co = checkout
|
2024-05-19 08:06:55 +02:00
|
|
|
cm = commit
|
2024-05-09 13:43:01 +02:00
|
|
|
st = status
|
|
|
|
br = branch -v
|
|
|
|
fa = fetch --all
|
|
|
|
graph = log --pretty=format:\"%h %s\" --graph
|
|
|
|
fo = fetch origin
|
2024-05-10 11:10:01 +02:00
|
|
|
# some project uses `master` and some uses `main` for the default.
|
|
|
|
# since their first two letters are both ma, use the last char.
|
|
|
|
usync = !echo 'ERROR: use usyncr for master, and usyncn for main.'
|
|
|
|
usyncr = rebase upstream/master
|
|
|
|
usyncn = rebase upstream/main
|
|
|
|
osync = !echo 'ERROR: use osyncr for master, and osyncm for main.'
|
|
|
|
osyncr = rebase origin/master
|
2024-05-09 13:43:01 +02:00
|
|
|
osyncm = rebase origin/main
|
|
|
|
aal = add *
|
2024-05-10 11:10:01 +02:00
|
|
|
po= !echo 'ERROR: use por for master, and pon for main.'
|
|
|
|
por = push origin master
|
|
|
|
pon = push origin main
|
2024-05-11 09:47:33 +02:00
|
|
|
amend = commit --amend
|
2024-05-19 08:06:55 +02:00
|
|
|
cmt = commit -S
|
|
|
|
amends = commit --amend -S
|
|
|
|
acmt = commit -a -S
|
|
|
|
acm = commit -a
|
2024-05-09 13:43:01 +02:00
|
|
|
fup = fetch upstream
|
2024-05-10 11:10:01 +02:00
|
|
|
com = !echo 'ERROR: use cor for master, and con for main.'
|
|
|
|
comr = checkout master
|
|
|
|
comn = checkout main
|
2024-05-11 09:47:33 +02:00
|
|
|
pog = push origin
|
2024-05-09 13:43:01 +02:00
|
|
|
cob = checkout -b
|
2024-05-21 08:47:37 +02:00
|
|
|
count = count-objects -vH
|
2024-05-09 13:43:01 +02:00
|
|
|
# below are non-git command, signified via `!` in the comment
|
|
|
|
# https://issuetracker.revi.xyz/u/gitalias
|
2024-05-10 11:09:53 +02:00
|
|
|
arcd = !arc diff
|
2024-05-11 09:47:43 +02:00
|
|
|
a-d = !arc diff
|
2024-05-10 11:09:53 +02:00
|
|
|
arcl = !arc land
|
2024-05-11 09:47:43 +02:00
|
|
|
a-l = !arc land
|
2024-05-10 11:09:53 +02:00
|
|
|
arcp = !arc patch
|
2024-05-11 09:47:43 +02:00
|
|
|
a-p = !arc patch
|
2024-05-10 11:09:53 +02:00
|
|
|
arcw = !arc work
|
2024-05-11 09:47:43 +02:00
|
|
|
a-w = !arc work
|