Instead of trying to βinsertβ a new git folder into the project, you should:
- clone a new repo on the same computer.
- Put all the old files (everything except the .git folder) in the new folder.
- this will give you all the new changed files and the new ones listed in 'git status'
- Now you can make and click on them without any problems.
This IMHO is certainly the best approach for this inconvenient case, which I discovered a couple of times. However, you should not do it if the difference between your repo and the central one is large, forcing you to do a megacommit, which is sometimes not desirable.
It has been a long time since you asked, hope this brings some problems.
source share