I have a large (>1G) BitBucket repository that is also backed up on Google Drive; and I have two computers (one at the office, and one at home). Things have been working fine for more than a year; however, today when I wanted to commit some code and did a git status
, I got a long list:
deleted: A/AA/a.txt
deleted: A/AA/aa.txt
deleted: B/BB/bbb.txt
... (a lot more here, I think it's all the files in the whole repo) ...
Untracked files:
(use "git add <file>..." to include in what will be committed)
A/
B/
C/
... (all the folders at the root level) ...
I checked on my computer, and all the files are still there; they've just been marked by Git as newly added files...
I have a couple of questions:
Why does Git suddenly mark all the files as new even though I haven't touched most of them in months? I never had this happen before.
After seeing the
git status
, I didn't do anything since I'm afraid of loosing my previous source history if Git sees all files as new... I'm a relative novice to Git; what should I do next?