dots/.gitaliases
Yongmin Hong 761a5d6c1f
gitconfig: git config --global format.signOff true
Summary:
Ref [man git config](https://git-scm.com/docs/git-config#Documentation/git-config.txt-formatsignOff).

Also disables aliases with `-s` now that config takes over

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

Test Plan: Apply patch and `git cm`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D100
2024-05-19 15:10:29 +09:00

43 lines
1.3 KiB
Text

# Copyright (C) 2017 Hong Yongmin <https://revi.xyz>
# SPDX-License-Identifier: Apache-2.0
[alias]
co = checkout
cm = commit
st = status
br = branch -v
fa = fetch --all
graph = log --pretty=format:\"%h %s\" --graph
fo = fetch origin
# 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
osyncm = rebase origin/main
aal = add *
po= !echo 'ERROR: use por for master, and pon for main.'
por = push origin master
pon = push origin main
amend = commit --amend
cmt = commit -S
amends = commit --amend -S
acmt = commit -a -S
acm = commit -a
fup = fetch upstream
com = !echo 'ERROR: use cor for master, and con for main.'
comr = checkout master
comn = checkout main
pog = push origin
cob = checkout -b
# 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