dots/.gitaliases
Yongmin Hong da1e5b8acb
git configs: update
Summary:
- remove redundant `.gitmodule`. No more submodules.
- replace tabs with space as space is the majority here.
- spacing issues @ `.arcconfig`.
- sync `.arclint`.
- alphabetize configs.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: deploy and test?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D171
2024-05-28 21:24:16 +09:00

45 lines
1.3 KiB
Text

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