Cousin Ricky <ric### [at] yahoo com> wrote:
> I created a branch, made some changes there, then switched back to the
> main branch, and the changes were also in that branch as well. Why did
> the changes apply to both branches? What am I missing?
>
> Most baffling is that I got branches to work just 3 weeks ago. I don't
> know what I did differently.
90% chance you created a branch with `git branch` but then never checked it out.
Create a branch with `git checkout -b new-branch` to do both at the same time.
Post a reply to this message
|