Skip to content

Instantly share code, notes, and snippets.

View Eduardo06sp's full-sized avatar
🐧
Programming in Rails

Eduardo Eduardo06sp

🐧
Programming in Rails
  • California, USA
View GitHub Profile
@dsernst
dsernst / comparing-git-add-all.md
Last active June 11, 2024 19:38
Compare `git add .` vs `git add -A`

git add . vs git add -A

Both of these will stage all files, including new files (which git commit -a misses) and deleted files.

The difference is that git add -A also stages files in higher directories that still belong to the same git repository. Here's an example:

/my-repo
  .git/
 subfolder/