I have a git tree:
egit/
project1/
project2/
And I am trying to split project1
off to another repository. So I open command-prompt and cd
into the egit
folder. Then, following this tutorial, I run the command git filter-branch --prune-empty --subdirectory-filter \ project1\ master
. I keep getting the error:
fatal: ambiguous argument 'project1\': unknown revision or path not in the
working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
I have verified that project1
is in my git repo using git ls-tree --full-tree -r HEAD
, so I have no idea what is wrong. Any ideas?
Use the following command.
git filter-branch --prune-empty --subdirectory-filter project1 master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With