DEV Community

Discussion on: Take Snapshots of Your Project with Git

Collapse
 
linden profile image
Anders Lindén • Edited

Be careful with 'git add .' I see more often beginners commit junk to the repository when this command is being used.

git add . = Stage all new files, modifications and deletions.

git add -u = Stage modified and deletions

EDIT: I have been thinking of your article during the day, it is a really good one. I hope that I could have had this kind of explanation about the situation of the limbo between staged and commited before pushed as you describe when I started to use Git.