I'm having trouble googling the solution to this problem by describing the symptoms, so I'm assuming I'm not using the correct terminology. Here's what I did:
- Trying to reorganize my git file structure a little, I moved fileA from repo-root/ into repo-root/subfolder/ in nautilus.
- $ git add .
- $ git commit -m "Just moving files"
- $ git push
Looking at github, I see the file is now located in both repo-root/ and repo-root/subfolder. Oh no, I only want one copy in the repo! No problem, I can pull the repo again and git rm
the file in repo-root/.
\5. $ git pull Already up to date
Uh oh.
The file doesn't exist in that location on my local machine, so git rm fileA
in repo-root/ doesn't see the file when I tab over. I also can't seem to pull it down without maybe entirely re-cloning again? What is the name of the state my repo mismatch is in, and how do I fix it?