FHIR Chat · add branch to already changed clone · committers/git-help

Stream: committers/git-help

Topic: add branch to already changed clone


view this post on Zulip John Moehrke (Oct 29 2018 at 23:51):

I have accidentally made changes to my clone without first declaring a branch... Now what? Is there a way to recover, or do I need to copy off my changes, start the branch, and copy the changes back?

view this post on Zulip Josh Mandel (Oct 29 2018 at 23:57):

Have you committed these changes, or just made them to your local working copy?

view this post on Zulip Josh Mandel (Oct 29 2018 at 23:57):

If you haven't committed them yet, just run git branch mynewbranch now and proceed.

view this post on Zulip John Moehrke (Oct 29 2018 at 23:59):

cool. thanks

view this post on Zulip Josh Mandel (Oct 30 2018 at 00:00):

And I mean git checkout -b mynewbranch. Sorry, typing without thinking.

view this post on Zulip Josh Mandel (Oct 30 2018 at 00:00):

(I really mean follow step 1 of https://github.com/HL7/fhir/wiki/Get-Started-with-FHIR-on-GitHub#submit-changes-to-the-fhir-spec-by-pushing-from-a-local-clone)

view this post on Zulip John Moehrke (Oct 30 2018 at 00:12):

I'm using tortoise, so just started at the step to create a branch. Seems to be working smoothly


Last updated: Apr 12 2022 at 19:14 UTC