Selectively git add Files
Learn to selectively git add files instead of choosing all files in the project folder.
We'll cover the following...
In the project initialization steps, we learned to use git add .
to include all files in the project folder to the first git commit
. But most beginners only use git add .
for the rest of their lives. This command adds all files without reviewing them. We must use it carefully.
Overuse of git add .
If unrelated code is committed to the same commit, we won’t be able to ...