Reputation: 970
I am trying to import existing git and repo projects into a new single git repository.
There are many .gitignore files already checked in, and it is preventing me from importing the files matching in the .gitignore file.
What I have done so far is delete all of the .gitignore files and then everything gets put in, with a git add -A, and then I will put the .gitignore files back when I am done importing.
Is there some clever way to do this with command line options so I don't have to go through all of these extra steps?
Upvotes: 0
Views: 80
Reputation: 29811
Try force-adding ignored files by using git add -f .
, see the help for git-add.
Upvotes: 1