question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Error: There is no tracking information for the current branch.

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kd7lxlcommented, Jul 29, 2021

I see this when it is triggered by an on: pull_request event on a fork PR. Triggering it with on: push, so that it runs in the fork context, fixes it for me.

0reactions
stale[bot]commented, Aug 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found