Those of you working in the CLI a lot - what are your favorite aliases that might be useful to others?

Some of mine:
- Better ls command: alias lsa='ls -lAFh'
- A command to drop/recreate/re-seed my Postgres DBs: alias dbnuke='bundle exec rake db:drop db:create db:migrate db:seed'

dotfiles/oh-my-zsh/custom/filesystem.zsh at master · soulcutter/dotfiles

My personal dotfiles. Contribute to soulcutter/dotfiles development by creating an account on GitHub.

GitHub

@niclake My git aliases:

[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
rbc = rebase --continue
ap = add -p
rbi = rebase -i

@niclake A git alias i've been using for a long time:

first-push = ! git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)

For pushing the branch the first time, when it would otherwise be rejected with an error of "The current branch xxx has no upstream branch."