I cloned a Repo from Perfoce into Git locally with all its history, call it SubProj
, and then I pushed it to a remote repo, and used that remote repo to merge SubProj
under a SuperProj
.
There is no way to import part of the history from Perforce to Git, either @all
or none
. Anyway, It went fine and I deleted the local repo, and its remote.
Now, there are changes on the Perforce depot SubProj
, so I cloned SubProj
again with all the history, I want to push then merge with SuperProj
but I do not want the whole history (only the new changes).
Say SubProj
has this history, and it is local:
A--B--C--D--E--F--G--H
I know we can push starting from the oldest commit, and until a specific commit. Ex:
git push SubProjRemote <commit C on master>:master
Will push A--B--C
to the remote.
But:
Can I push only E--F--G--H
to the remote repo?
Can I push all, but then merge only E--F--G--H
?