💻 Terminal & git
One command or shortcut at a time, for anyone who lives in a shell.
- 💻 Terminal & gitJump back with cd -Toggle between your last two directories, like Alt+Tab for folders.
- 💻 Terminal & gitSearch your shell history with Ctrl+RStop pressing the up arrow 40 times. Type any part of an old command and it appears.
- 💻 Terminal & gitFix your last commit with --amendForgot a file or made a typo in the message? Fold the fix into the commit you just made.
- 💻 Terminal & gitSee your branches as a graphOne log command turns a wall of commit text into a readable branch map.
- 💻 Terminal & gitPark unfinished work with git stashNeed to switch branches but you're mid-change? Stash it, switch, and bring it back later.
- 💻 Terminal & gitRerun the last command with sudo !!Got "permission denied"? Don't retype it.
!!means "the previous command."