My intention is to clone a repository from github, make some changes to it and then store it on my company's bitbucket server along with its submodule repositories. I am not sure what is the proper way to do this since the submodule pointer inside the main git repository also point to github website.
The first thing I noticed is that, all the repositories cloned from my bit bucket have a .git folder inside. But, the repositories cloned from github contain a .github folder. Why is this so? Aren't they both git repositories basically?
What is the proper way to take the main repository and its submodules and put then on my local bit bucket server so I can always use them from there? This is also important so I can stay away from the hell of SSL certificates and firewalls of my employer.
How do I change the remote of the repositories to my local bitbucket server yet at the same time have the capability to pull changes from github?