I have a git clone of a C project, and on that i have my own customized modules, after final modification, i want to make my own stable repository as backup in to github. So when i try to add as below, it fails, because in the child directory there are many .git or .gitignore exist:
Example:
$ ls -a
/var/tmp/me << main project
/var/tmp/me/folder/main.c
/var/tmp/me/folder/main.h
/var/tmp/me/folder/etcetc.c
/var/tmp/me/folder/.gitignore
/var/tmp/me/folder/.git
/var/tmp/me/another/.git
/var/tmp/me/another/.gitignore
$ sudo git remote add origin git@github.com:me/my.git
fatal: Not a git repository (or any of the parent directories): .git
How do i remove all the previous git repository flags? So that i can apply the git remote add origin?