title: How to move new commits from git-p4 to a different repo
body: <p>I am using <code>git p4 clone //depot/...@all .</code>  to initially get source from perforce to a local git repo. I push it to remote.
  I then periodically use <code>git p4 rebase //depot/... .</code> to get the latest code to the local git repo. Push it to remote.</p>
  <p>Because of the size of our history I am truncating the history and creating a &quot;current_src&quot; repo on remote which has limited history. I use rebase for this so the commit hashes no longer match with what I pushed from my local repo.</p>
  <p>Now when I push newly retrieved source from git-p4 to this remote &quot;current_src&quot; I get a ton of conflicts.</p>
  <p>Is there a way I can automate the push of only new source from git-p4 to the remote current_src which has different commit hashes due to the rebase?</p>
  <p>Just for the sake of context this is how I truncate history: <a href="https://stackoverflow.com/questions/71685527/splitting-a-git-repo-at-a-commit-hash-and-merge-it-later">Splitting a git repo at a commit hash and merge it later</a></p>