0

I have a repo (based in bitbucket) that I have cloned. How can I connect my cloned repo with my sandbox environment? My IDE is VS Code.

In the past I have created a new project from manifest - however when I do that it creates a separate folder. As a result I need to manually copy files between my first folder (connected to the SF Sandbox) and the other folder (connected to Git remote).

Thanks for any advice on this.

1
  • Is this an existing SFDX project repo?
    – sfdcfox
    Apr 28, 2020 at 19:40

1 Answer 1

1

Assuming this is an SFDX repo (e.g. already in source format, has sfdx-project.json, etc), simply use SFDX: Authorize an org from the Command Palette. Follow the prompts to authorize your project folder. Once done, you should be connected.

4
  • I'm in the same situation and Authorize an Org does not appear in the command palette. Mar 10, 2021 at 17:22
  • @DavidCheng You need to wait for the extensions to "boot up", which takes a moment. Worst case scenario, you can go to the Terminal and type sfdx force:auth:web:login -s -a desiredAlias, and VS Code will pick up the newly authorized org.
    – sfdcfox
    Mar 10, 2021 at 17:35
  • Thanks @sfdcfox, I waited and it didn't appear. I also tried the CLI and it didn't work either -- I still don't get the Salesforce-specific options when I right click on package.xml. I'll create a new question for my issue. Mar 10, 2021 at 17:48
  • @DavidCheng Please do. I'll be glad to check it out.
    – sfdcfox
    Mar 10, 2021 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.