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

# z for quickly switching between commonly used dirs eg. `z ex` -> cd /mnt/c/dev/api.extensions

  # https://github.com/rupa/z
  source ~/z.sh
git helpers

  # update all git repos in subdirs
  alias gitp="ls -d */ | xargs -P10 -I{} git -C {} pull"
  # fetch updates for git repos in subdirs
  alias gitf="ls -d */ | xargs -P10 -I{} git -C {} fetch --all"
selection of most commonly used git aliases

  ci = commit -m
  cf = clean -fxd
  cl = clone
  co = checkout
  cm = commit --amend --no-edit
  lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all -n 25
  pf = push -f --follow-tags
  rb = rebase master
  st = status -sb


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

Search: