Getting Error: There is no tracking information for the current branch.
See original GitHub issueHi, I’m generating some files and want to use GHA to commit the files here’s my step in config
- name: NPM Generate Sass Docs
run: |
npm run generate:sass:docs
- name: Commit sass docs
uses: EndBug/add-and-commit@v7
with:
add: 'public/sassDocs'
author_name: Github Action
author_email: gha@meredith.com
message: 'Generated sass docs'
But sometimes I get the following error:
Add input parsed as single string, running 1 git add command.
> Using 'Github Action <gha@meredith.com>' as author.
> Using "Generated sass docs" as commit message.
> Running for a PR, the action will use 'feature/PLAT-263-generate-sass-doc' as ref.
Internal logs
Outputs
committed: false
pushed: false
tagged: false
Error: Error: There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> feature/PLAT-263-generate-sass-doc
Could anyone help and let me know what I should do?
Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
There is no tracking information for the current branch
This branch tracking is set up for you automatically when you clone a repository (for the default branch only), but if you add...
Read more >Git - Fix Error: There Is No Tracking ... - Unfuddle Support
How to fix Git error: There is no tracking information for the current branch. ... When performing an operation like git pull ,...
Read more >There is no tracking information for the current branch
This branch tracking is set up for you automatically when you clone a repository (for the default branch only), but if you add...
Read more >Git FIX for: There is no tracking information for the ... - Dirask
There is no tracking information for the current branch. Please specify which branch you want to merge with.
Read more >There is no tracking information for the current branch. #2717
One guess is your local genproto copy is bad. Try to cd C:\Users\25472\go\src\google.golang.org\genproto and git status . If you didn't make any ...
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
I see this when it is triggered by an
on: pull_request
event on a fork PR. Triggering it withon: push
, so that it runs in the fork context, fixes it for me.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.