After doing a git-p4 clone --use-clientspec
, I would like to add an extra entry to the clientspec, and import the current state of the added entry to my Git rep
@jamesdlin's answer is what worked for me. While researching ideas for how to solve this, I came across a couple other stackoverflow answers that were interesting. I wonder if they could be combined to create an elegant solution. I'm mentioning the idea here in case it helps someone else. This idea is a variation of what's described in How to copy commits from one Git repo to another? and borrows an idea from git clone multiple p4 paths in one git repo.
git p4 clone newstuff ...etc...
git remote add newstuff /path/to/newstuff
git merge
, with --allow-unrelated-histories
if needed.