Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Continue On between SSH and HTTP remotes #183575

Closed
2 tasks done
joyceerhl opened this issue May 26, 2023 · 1 comment
Closed
2 tasks done

Test: Continue On between SSH and HTTP remotes #183575

joyceerhl opened this issue May 26, 2023 · 1 comment

Comments

@joyceerhl
Copy link
Collaborator

joyceerhl commented May 26, 2023

Refs: #172341

Complexity: 4
Roles: Developer, Engineering Manager

Create Issue


You can now transfer working changes for the same repository across different VS Code workspaces regardless of whether you like to use HTTP or SSH remotes.

If you have SSH cloning set up locally:

  1. Start in a GitHub repo in insiders.vscode.dev
  2. In VS Code desktop, configure "github.gitProtocol": "ssh" (and make sure you have set up your local machine for SSH cloning)
  3. Make some uncommitted changes in insiders.vscode.dev
  4. From the remote indicator, select Continue Working in New Local Clone
  5. If you're doing this for the first time you should be prompted to sign in to transfer your changes in insiders.vscode.dev and again locally
  6. Your working changes should restore in the local clone

If you do not have SSH cloning set up locally, you can equivalently do:

  1. Open a GitHub repo in insiders.vscode.dev
  2. Clone that same repo to VS Code desktop
  3. Locally run git remote set-url origin <ssh equivalent of http origin>
    • e.g. https://github.com/microsoft/vscode.git -> git@github.com:microsoft/vscode.git
  4. Make some uncommitted changes in insiders.vscode.dev
  5. Run Store Current Working Changes in Cloud in insiders.vscode.dev
  6. Run Resume Latest Working Changes from Cloud in VS Code desktop
  7. Ensure your working changes restore in the local clone
@vscodenpa vscodenpa added this to the May 2023 milestone May 26, 2023
@ghost ghost assigned aiday-mar and amunger May 30, 2023
@aiday-mar aiday-mar removed their assignment May 30, 2023
@amunger
Copy link
Contributor

amunger commented May 30, 2023

I'm not sure what SSH cloning is, but didn't see the Continue Working in New Local Clone, so I probably don't have it set up.
Second part worked fine tho.

@amunger amunger removed their assignment May 30, 2023
@amunger amunger closed this as completed May 30, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants