Quick fix. Run:
git add -A :/ git status
Then make sure that only the files you want to add / delete / modify have been delivered . It is very important. If you accidentally make extraneous changes, run git reset . If you are sure you want to continue, run git commit .
Without -A , git add only adds and modifies files. It will not delete entire files, and moving will turn into copies. git add -A deletes files that no longer exist.
:/ is a shortcut, which means the root of the repository, not the current directory. If your current directory is the root of the repository, you can omit this.
Note that running git add -A - especially at the root of the repository - is usually considered dangerous. Do not get into the habit of blindly making all the changes you have made: just put on what you know you want to change. However, when you move a large number of files, this is a pretty handy utility.
Zenexer
source share