You probably know:
git diff shows unstaged changes.
git diff --cached shows staged changes.
But how do you see all changes in one go? Just use:
git diff HEAD
Here's the breakdown:
git diff compares the working directory to the staged index. If nothing is staged, it's the same as git diff HEAD.
git diff --cached compares the staged index to HEAD. It's a shortcut for git diff --cached HEAD.
git diff HEAD (or git diff <commit/branch/tag>) compares your current working directory with the specified commit.
BOM is annoying. Especially when I am creating a SQL script file.
- use:
^ (shift + 6)
This moves the cursor to the first non-blank character of the current line.
_ (underscore)
This also moves the cursor to the first non-blank character on the same line the cursor is on.
By the way, the 0 command moves to the absolute start of the line, including any leading whitespace.
Instead of pressing backspace repeatedly, press ESC then Backspace.
Reference
Don't you want more? here's some
- how to delete to the end of the line?
Ctrl + k
- how to delete to the beginning of the line?
Ctrl + u
- Simply move the cursor to the line of the beginning?
Ctrl + a
Want a full list?
Here you are
docker network ls
then
docker network rm networkname