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.

`git-checkout-pr` giving wrong code

See original GitHub issue

Description

The code given on the Checkout with Git http and ssh boxes is incorrect. The third line should read git switch --track upstream/zb140/refactor-compose-files. Upstream instead of the repo owners name because in line one we added upstream as the name of the remote. (Or line one should be changed to be the repo owners name instead of upstream)

git remote add upstream git@github.com:games-on-whales/gow.git
git fetch upstream zb140/refactor-compose-files
git switch --track games-on-whales/zb140/refactor-compose-files

image

How to replicate the issue

Open a PR and click the button to pop out the git-checkout-pr box

Extension version

22.8.23

Browser(s) used

Chrome 104

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
yakov116commented, Aug 25, 2022

@Sparticuz if I am not mistaken there is reason we wrote it like this. Since if upstream exists the first line will error so we need to write it again on the second line.

Unless I am not understanding your issue. Please post a url as stated in the issue template.

Upstream is used when you are not the owner or collaborator on the repo.

1reaction
Sparticuzcommented, Aug 25, 2022

Basically, the commands given, are creating one remote, then trying to pull from a different remote

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Authenticator App keeps giving the wrong codes.
I have an account I'm locked out of and i cant get back into because the google authenticator app wont give me the...
Read more >
How can I check out a GitHub pull request with git?
To fetch a remote PR into your local repo, git fetch origin pull/$ID/head:$BRANCHNAME. where $ID is the pull request id and $BRANCHNAME is...
Read more >
How to fix the Google Authenticator Wrong Code Try Again error
Authenticator # Error #WrongCode I've been getting some comments from you guys on my previous video on how to transfer the Google ...
Read more >
How to fix the Google Authenticator Wrong Code ... - YouTube
Authenticator # Error #WrongCodeThis will be a really quick video in which I want to show you how to fix the " wrong...
Read more >
Authenticator produces wrong codes during setup of new entries
What steps will reproduce the problem? Go to auth setup page (Google, Amazon AWS, ...) Scan code or enter code manually New entry...
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