-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: pathspec 'master' did not match any file(s) known to git #306
Comments
Had the same issue and svn2git didn't work for me at all. I managed to migrate using the steps outlined here |
Looks like git svn fetch failed. You can try to figure out why it failed by running it manually. |
Current versions of GIT don't create a https://about.gitlab.com/blog/2021/03/10/new-git-default-branch-name/ |
To add to the comment above, you may be able to get around this by running I'm attempting this currently, but it'll be another 16 hours before I know if it was successful, since this error occurs after the |
It doesn't seem like my previous suggestion worked (after another ~16 hours). I forked this repo and changed it so that it looks for |
Hi @zedseven, I've test your forked repo on my svn repo successfully after I update git to the latest version and add |
Instead of getting into default branch name holy wars or a compatibility excretion contest by making a fragile assumption, I've found this pattern to work without modifying mkdir {{your_repo}}
cd {{your_repo}}
git init -b master
svn2git .... This has the advantage of not modifying git global defaults or changing svn2git which would require multiple layers of up- and downstream release processes to arrive as a standard system package. A more robust fix would be for |
using svn2git for migrating svn to git but getting below error,
\MYProject\Demo>svn2git https://shwetakhai-w10.cybage.com:8443/svn/SVN2GIT/ --authors authors.txt -v
Running command: git svn init --prefix=svn/ --no-metadata --trunk='trunk' --tags='tags' --branches='branches' https://shwetakhai-w10.cybage.com:8443/svn/SVN2GIT/
Initialized empty Git repository in D:/MYProject/Demo/.git/
Running command: git config --local --get user.name
Running command: git config --local svn.authorsfile authors.txt
Running command: git svn fetch
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git config --local --get user.name
Running command: git config --local --get user.email
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git
command failed:
git checkout -f master
The text was updated successfully, but these errors were encountered: