Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

.bashrc:

  alias g='git'
.gitconfig:

Tons of aliases, but most often used are:

  a = add
  amend = commit --amend
  b = branch
  co = checkout
  po = pull origin
  fa = fetch --all
  reb = rebate
  reba = rebase --abort
  rebm = rebase master
  unstage = git rm --cached
As TFA demonstrates, it's also possible to alias full-blown shell commands and even multiple shell (or git) commands, which is powerful.

Someday I would like to give jj a real try, too.

https://github.com/jj-vcs/jj



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: