This has caught me up a couple times. I have a terminal open inside a GIT repository. I do git status to see all the changes across the repository. I then do git add -A, git commit -m "Some text" and git push to push everything to GitHub.
But... I fail to realise that my terminal's working directory is not the repository's root directory, so actually, git add -A does not commit all changes git status told me about, only the changes to files inside the terminal's working directory.
How can I git add from within a GIT repository (not necessarily having the root directory as working directory) so that it will add all changes across the repository?
git add -Aandgit add -uwill start operating on the entire tree for consistency with other commands. So say the Git 1.8.2 release notes. – jjlin Mar 14 at 5:31