# Copyright (C) 2017 Hong Yongmin # 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