Reputation: 11
I created a new remote repo using files from a local rep (repo is called red). For some reason red is tracking a file from midas
, a completely different repo. I tried deleting everything and starting from scratch and it's still tracking this file from midas
.
I see it says "use git checkout file" to discard changes, but I'm new to git and nervous about what will happen
Upvotes: 1
Views: 182
Reputation: 1330052
A folder (like midas) with "new commits" associated to its status means it is a git submodule (checkout if you have a ../.gitmodules
files)
If it is, you can remove that submodule if you don't need it.
See instructions here.
Note that your main repo is in ~jenminervas/code
and not in ~jenminervas/code/red
.
If that is not what you want, you should delete (or at least rename) ~jenminervas/code/.git
.
Upvotes: 1