A git repository was taken from a local system (localhub) and created on the project wide system (companyhub). However, the history was lost because the various files were committed at one time.
That is, the repository git@companyhub:projects/myproject.git was created without the history.
The git log
on companyhub now reads
Adding project processing to company git hub
with the date on which this was done.
Is there a way in which I can take the history which still exists on localhub and put it in to the repository which has been created on company hub.
I want to have git@companyhub:projects/myproject.git show the same log history as git@localhub:projects/localproject.git
Note that the files do not change. it is the history shown by git log
that is to be fixed.
Would going into the clone created by localhub and issuing
git push git@companyhub:projects/myproject.git
work. I am reluctant to try it without first getting confirmation from someone who knows better.