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.

Meaning of origin and upstream unclear

See original GitHub issue

This looks awesome. I’m a bit confused about the usage, though. I have an upstream repository to which I want to monitor the PRs, but never push to, and I have my own fork. Should remote.Name be "origin" or "upstream"? If I set remote.Name to "upstream" I can see the PRs for upstream.

Maybe the use-case of looking at PRs from upstream while only pushing to origin is not supported yet?

Either way, if I do set the remote to "upstream" I can see the PRs but not check them out. git log:

> git fetch
> git status -z -u
> git symbolic-ref --short HEAD
> git rev-parse master
> git rev-parse --symbolic-full-name master@{u}
> git rev-list --left-right master...refs/remotes/origin/master
> git for-each-ref --format %(refname) %(objectname) --sort -committerdate
> git remote --verbose
> git show :.vscode/settings.json
> git check-ignore -z --stdin
> git show :.vscode/settings.json
> git status -z -u
> git symbolic-ref --short HEAD
> git rev-parse master
> git rev-parse --symbolic-full-name master@{u}
> git rev-list --left-right master...refs/remotes/origin/master
> git for-each-ref --format %(refname) %(objectname) --sort -committerdate
> git remote --verbose
> git show :.vscode/settings.json
> git checkout -q dev-fix-issue-11113
error: pathspec 'dev-fix-issue-11113' did not match any file(s) known to git.

This shows origin, not upstream.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KnisterPetercommented, May 28, 2018

@amueller Sorry for my late answer. There are two configuration options for this:

        "github.remoteName": {
          "type": "string",
          "description": "Defines the name of the git remote. Defaults to 'origin'.",
          "default": "origin",
          "scope": "resource"
        },
        "github.upstream": {
          "type": "string",
          "description": "By default the extension get the repository and user from .git/config. For forks where upstream is a different repository this could be configured here (e.g. microsoft/typescript).",
          "scope": "resource"
        },
0reactions
stale[bot]commented, Jun 18, 2020

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

What is the difference between origin and upstream on GitHub?
upstream generally refers to the original repo that you have forked (see also "Definition of “ downstream ” and “ upstream ”" for...
Read more >
Git Upstream and Downstream - javatpoint
Data will flow downstream naturally. In the reference of time/history, it can be unclear, because upstream in time means downstream in history, and...
Read more >
The most confusing git terminology | Mark's Blog
I.e. the “upstream” of a remote-tracking branch is the branch of the same name on “origin”. Is that right? commit. As a noun....
Read more >
Fix Git's "fatal: no upstream branch" error quickly example
Here's a quick fix for Git's "fatal: The current branch has no upstream branch" error, along with a brief explanation of why this...
Read more >
Allow external pull requests to use secret variables from the ...
It's still unclear what to do if a variable exists in upstream but as a ... Pass the PR origin's Repository Settings alongside...
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