git add -A is not adding all modified files in directories

后端 未结 9 934
旧时难觅i
旧时难觅i 2020-12-04 14:17

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

9条回答
  •  温柔的废话
    2020-12-04 14:40

    I had this very issue the past couple of days with BitBucket. I am working on a project that is being tracked in its repository by Visual Studio 2013 Community Edition.

    However I had used Git Bash on occasion to manually do commits and that's when things started to go wrong and files were simply being ignored. Tried to reclone the repo but this didn't help.

    Finally I found that if you go into Visual Studio > Team Explorer > click on Sync, Visual Studio will do a pull and then commit and push any untracked files.

    You could do the same manually through Git Bash if you like the console like I do.

    Hope this helps someone.

提交回复
热议问题