I have been successfully working on a simple git repo, with 4 files, adding and committing them many times.
But lately, any time I try to add some of them, then ask for status, git reports all my files as deleted AND untracked. So I can not add my files.
$ git add ch28_NN.py
$ git add Challenge28.py
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: .gitignore
deleted: Challenge28.py
deleted: ch28_NN.py
deleted: requirements.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
Challenge28.py
ch28_NN.py
requirements.txt
My only solution now would be to make backups and try to reset to unstage.
I would like to understand what went wrong, and how to avoid it.