I want to add all files no matter what: whether it is deleted, created, modified, untracked, etc? I just don\'t want to git add ALL my files EVERY T
Let's quote the documentation for -A:
-A, --all
Like -u, but match <filepattern> against files in the working tree in addition to the
index. That means that it will find new files as well as staging modified content and
removing files that are no longer in the working tree.
Note the critical word: <filepattern>
. You need to give it a pattern that matches, recursively, all the way down your tree.
A pretty simple fix for me - I had opened the Git Bash in a subdirectory of the project.
Open the Bash and doing the commands in the root directory fixed this problem; git add -A .
worked as expected.
This error occurs because you have added a folder which is already linked with some another github repository .
To solve this issue first copy the files you want to upload to github from the BankAccount folder and then delete the BankAccount folder.
Now make a new folder and then paste the files in it.
It is due to the git submodules that is automatically taken by git present in the earlier folder.
Now you can do
git add .
git status