/ stack · uses · setup

The tools I reach for.

What I actually use day to day.

1[alias]
2 s = status
3 co = checkout
4 cm = commit
5 br = branch
6 aa = add -A
7 cb = !"git rev-parse --abbrev-ref HEAD"
8 defb = !"git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'"
9 fresh = !"git fetch && git pull origin $(git cb)"
10 com = !"git checkout $(git defb)"
11 puszc = !sh -c 'git push origin $(git cb)'
12 forsc = !sh -c 'git push origin $(git cb) --force-with-lease'
13 mrbs = !"git rebase origin/$(git defb)"
14 nie = rebase --abort
15 lecim = rebase --continue
16 tree = log --oneline --graph --color --all --decorate
17 cme = !"git cm -m \"$(date)\""
18 # ...and ~30 more, see repo
/ ~/.gitconfig

Git, but with fewer keystrokes.

A pile of aliases I've grown over the years. git cb for current branch, git fresh to pull the current branch, git com to jump to default, git lecim to continue a rebase (don't ask).

Featured

the daily essentials

Productivity

reading, writing, shipping

Security

the boring, necessary stuff

Favourite books not software

Pale Blue Dot
Carl Sagan
1994
Can't Hurt Me: Master Your Mind and Defy the Odds
David Goggins
2018
The Diary of a Young Girl
Anne Frank
1947
Harry Potter (series)
J.K. Rowling
1997–2007