git add
defaults to -A
git add my_dir / git add -A my_dir
git add -A
inside sub-directory, it will stage all of the changes even though some of the changes are up one directory.
But git add .
will only stage all updated, deleted and new files that are inside the sub-directory
If we are inside my_dir
sub-directory, the two commands will do the samegit add . / git add -A my_dir/
https://youtu.be/tcd4txbTtAY?t=349git add --all / git add -A
-A
is a short handhand notation for --all
git stash
on one branch and then git stash pop
on another branch (to commit changes on another branch)git stash clear
git stash drop stash@{0}
git stash pop
git stash apply stash@{0}
does not delete the stash
git stash list