java.io.IOException: Failed checkout branch: Command "git checkout develop" returned status code 1: stdout: stderr: error: pathspec 'develop' did not match any file(s) known to git.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Jenkins JIRA by Christopher Timm, 1 year ago
Failed checkout branch: Command "git checkout develop" returned status code 1: stdout: stderr: error: pathspec 'develop' did not match any file(s) known to git.
via Jenkins JIRA by Christopher Timm, 1 year ago
Failed checkout branch: Command "git checkout develop" returned status code 1: stdout: stderr: error: pathspec 'develop' did not match any file(s) known to git.
via Stack Overflow by user2684301
, 2 years ago
Failed checkout branch: Command "git checkout master" returned status code 1: stdout: stderr: error: pathspec 'master' did not match any file(s) known to git.
via JFrog JIRA by Ryan Maki, 1 year ago
Failed checkout branch: Command "/usr/bin/git checkout develop" returned status code 1: stdout: stderr: error: Your local changes to the following files would be overwritten by checkout: gradle.properties Please, commit your changes or stash them before you can switch branches. Aborting
via JFrog JIRA by Ryan Maki, 1 year ago
Failed checkout branch: Command "/usr/bin/git checkout -b release-0.2.2" returned status code 128: stdout: stderr: fatal: A branch named 'release-0.2.2' already exists.
java.io.IOException: Failed checkout branch: Command "git checkout develop" returned status code 1: stdout: stderr: error: pathspec 'develop' did not match any file(s) known to git.
at org.jfrog.hudson.release.scm.git.GitManager$CheckoutBranchCallable.invoke(GitManager.java:234)
at org.jfrog.hudson.release.scm.git.GitManager$CheckoutBranchCallable.invoke(GitManager.java:199)
at hudson.FilePath.act(FilePath.java:914)
at hudson.FilePath.act(FilePath.java:887)
at org.jfrog.hudson.release.scm.git.GitManager.checkoutBranch(GitManager.java:60)
at org.jfrog.hudson.release.scm.git.GitCoordinator.buildCompleted(GitCoordinator.java:137)
at org.jfrog.hudson.release.maven.MavenReleaseWrapper$ReleaseRunListener.onCompleted(MavenReleaseWrapper.java:308)
at org.jfrog.hudson.release.maven.MavenReleaseWrapper$ReleaseRunListener.onCompleted(MavenReleaseWrapper.java:276)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
at hudson.model.Run.execute(Run.java:1720)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.