Skip to main content

Command Palette

Search for a command to run...

Day 6: How To Undo A Git Add All

Updated
1 min read
Day 6: How To Undo A Git Add All
M

I once grew mammalian cells and purified vaccines and proteins. Now I code with clumsy hands and over-use the backspace key.

...BEFORE committing

I use git add * a lot.
Actually, I use gita, gits, gitcm, gitp, as they are my Bash Aliases.

Next time, when you git add all and 2 dozen files are inadvertently added. Try these:

git reset - Deducts ALL the files you just staged

While

git reset file_name.ext Deducts ONE from the last staging.

Jus' Remember : The problem with using aliases is that they can become habitual. Not a bad thing, just something to watch for next time.