pathspec 'develop' did not match any file(s) known to git
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
I use shipjs trigger
with github actions.
But actions can’t checkout baseBranch develop
.
Error log is here.
base branch => develop release branch => master
To Reproduce Steps to reproduce the behavior:
- Run
npm run release:prepare
on develop. - merge PR.
- There is error…
Expected behavior Pass shipjs trigger
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- environment: (your local machine, CircleCI, Travis CI, etc.)
node -v
: 12.xnpm -v
oryarn -v
:- Ship.js version: 0.18.2
Additional context It might be caused by actions/checkout@v2😭
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
error: pathspec '...' did not match any file(s) known to git - Stack ...
A complete clone might not be required. If the branch is created by someone else AFTER you originally cloned the repo, you get...
Read more >Git errors: cannot checkout branch - DEV Community
Git errors: cannot checkout branch - error: pathspec 'branch_name' did not match any file(s) known to git · The branch name is misspelled...
Read more >Error: pathspec 'develop' did not match any file(s) known to git.
I think this error typically happens when there's either no matching branch_name in your locally fetched repos, OR there's multiple clones of ...
Read more >Git: cannot checkout branch - error: pathspec '…' did not match ...
1 Answer ... If you have deleted a branch with git branch -D yourbranchname and pulled/cloned again your repo, you may need to...
Read more >error pathspec did not match any file s known to git - Edureka
It just takes information about new branches and no actual code. After that, the git checkout should work fine.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jeetiss OMG You are right!! It’s succeeds!! Thanks!! https://github.com/gridsome/eslint-plugin-gridsome/runs/618888461?check_suite_focus=true
Hello @tyankatsu0105 I think that
fetch-depth: 0
parameter for actions/checkout should help you!