assertion failed errors when trying to git subtree split

I have a private GitHub repo (which I can’t share here) cloned locally. I want to split a subfolder in this repo into a new subtree repo. I’m following these instructions Using Git subtrees for repository separation (under Splitting code into its own repository).

My specific command is:

  • Compatibility issues between git 1.8 client and older git server
  • Only fetch a subset of remote git branches or only display a subset of them in gitk
  • Why does git think each line of an untouched file has changed
  • How to unpack packed-refs?
  • Using git to release to node.js
  • Configure GitLab repository in Jenkins
  • > git subtree split -P .\plugins\rg-feed-client -b rg-feed-client

    however it fails with exactly 24 “assertion failed” error messages that look like this:

    1/     26 (0)2/     26 (1)assertion failed:  [ plugins/rg-feed-client = .\plugins\rg-fee
    3/     26 (2)assertion failed:  [ plugins/rg-feed-client = .\plugins\rg-feed-client ]
    26/     26 (25)assertion failed:  [ plugins/rg-feed-client = .\plugins\rg-feed-client ]

    If I try any other subfolder, the exact same happens. I have no idea what may be wrong here… HELP!

    My repo has 2 remotes: origin, and a remote for an existing subtree that I added to my repo.

  • How can i generate a patch file from all commits in a local branch (GIT)?
  • Resolving Composer merge conflicts when upgrading Symfony2 Standard Edition
  • Upstream pulls with the GitHub desktop client
  • Git: Forcing pull from specific branch (and preventing override)
  • How to add *all* new/modified files to git, from anywhere? (like `git add -A`, or `git commit -a` for new files)
  • git push error: RPC failed; result=56, HTTP code = 0
  • 2 Solutions collect form web for “assertion failed errors when trying to git subtree split”

    This was probably due to the backslashes in –prefix (I was running Windows back then.)

    p.s. no one was able to answer this but they felt free to down-vote my Q? Of course I did a research effort, some people here are just pr1cks

    Split -P can’t gracefully handle directory path . Use following command instead –

    git subtree split --prefix=plugins/rg-feed-client -b rg-feed-client

    A few points to remember –

    1. Avoid prefixing ./ with path i.e instead of ./plugins/rg-feed-client use plugins/rg-feed-client

    2. Avoid any trailing / after the path , i.e NO plugins/rg-feed-client/

    Git Baby is a git and github fan, let's start git clone.