git checkout REDACTED error #187279
Replies: 3 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hey friend, I just hit this issue and adding permissions to read the repo to my agent file did the trick, name: Copilot Setup Steps
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @truggeri ! Where I have to add this permissions? Which files and location? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I get error trying to creare a PR wit copilot coding agent.
It'a aprivate repo, and I can create branches from my local without problems, there's not rules that clock the agents or branch actions.
I've tried 2 times asking to coding agent to open a request (using 2 premium) but it's getting error and there's not file changes.
The message error is :
Copilot stopped work on behalf of fdambrosio due to an error [1 hour ago]
[Copilot encountered a repository rule or branch protection rule violation when trying to push changes. See logs for details. If the problem persists, please contact GitHub Support. To retry, leave a comment on this pull request asking Copilot to try again.]
The new branch was created from the agent.
The log git error is the following:
$ git rev-parse --abbrev-ref HEAD HEAD
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'
<exited with exit code 128>
Call to command
$ git checkout REDACTED error: pathspec 'copilot/create-documentazione-tecnica-e-marketing' did not match any file(s) known to git
<exited with exit code 1>
I need support, thanks,
regards,
Francesco
Beta Was this translation helpful? Give feedback.
All reactions