I have two Github repositories. One repository is on the remote server and another on the local server. Both of them have different commit histories of different files and folders. Now I wanted to merge both of them so that I can have both of them on the remote server as one single repository. Please help!
I have looked for various solutions suggesting as: reset the head of the local repository and then pull the remote repository on the same directory but it doesn't seem to be working:
git reset --soft head ~CommitSHA (First commit of the local repo)
git pull ~giturlofremoterepo (Pulling remote repo in the same directory)