pantheon-systems / localdev-issues

Issue tracking for Pantheon localdev
6 stars 2 forks source link

Pushing from LocalDev for sites using CircleCI. (Without auto pushing to Master) #34

Open jahzlariosa opened 5 years ago

jahzlariosa commented 5 years ago

Use Pantheon Localdev to Develop Sites Locally

Priority: Low

Title

Pushing from LocalDev for sites using CircleCI/BuildTools.

Description

Tried pushing from LocalDev as is and CircleCI was triggered and new branch and multidev has been created but the commit has been pushed also to the Master directly.

Suggested Resolution

To push commits from LocalDev to Github and not Pantheon (Multidev Master) Directly . Under LocalDev(UI) / SSH - Click on "Launch Terminal"

Change the remote origin git.

$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git

Verify that the remote URL has changed.

$ git remote -v
# Verify new remote URL
> origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
> origin  https://github.com/USERNAME/REPOSITORY.git (push)

Create new branch

$ git checkout -b branch

Proceed to add and commit all changes. Then push.

$ git add .
$ git commit -m "commit from Localdev"
$ git push origin branch

Note LocalDev UI "Push and Pull will not work using this method" I don't know if the LocalDev "Push and Pull" buttons are hard set.

Expected Audience

Might be helpful for customers who want to use LocalDev for sites created with BuildTools. Would be awesome if this can turn into a doc (If it doesn't exist yet).

Path

docs/localdev

alexfornuto commented 5 years ago

@jahzlariosa Looks like you used the new doc issue template. I'll make some edits.

alexfornuto commented 5 years ago

@joshkoenig assigned to you in case you want to weigh in.

alexfornuto commented 5 years ago

Moving issue to https://github.com/pantheon-systems/localdev-issues/issues.