1

I'm putting files from an old project within a new one.

I cloned a git repository into a folder, which I copied into another git repository folder, and made the appropriate initial changes, which I was NOT tracking. I want to push all of the files to the new git repository. I tried to add this:

$ git add old/* 

to which I get back:

fatal: Path 'old/conf' is in submodule 'old' 

I tried to delete the whole oldsoft/.git folder (I have the new .git folder within the parent folder), but it still gives me the same error when I try to add oldsoft/*. I think I need to remove the .git information from the cache, but I can't figure out how to do that.

1 Answer 1

2
git rm --cached old git add old 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.