How to use target option?
polothy opened this issue · 2 comments
polothy commented
When I try to use the --target=some-new-branch
option I get this error:
The target is not a valid Git reference
My understanding was that the target option took a branch name that does not exist and that it would create the branch after the split. Is this incorrect? Is target instead supposed to be used to add new commits to an existing split stored in an existing branch?
Cheers and thanks!
fabpot commented
From docs: --target creates a reference for the tip of the split (can be any Git reference like HEAD, heads/xxx, tags/xxx, origin/xxx, or any refs/xxx)
So, it should be heads/some-new-branch
to create a new branch or override an existing one.
benito103e commented