0

Basically I made a mistake.

Locally I was developing on master and was committing and merging away as master was moving forward; when the time came to push, I realized I wanted to have the commits on a branch and not on master just yet.

I can't stash since it's already committed, and the merging seems to further complicate things.

How do I move my "local" commits to a new branch?

CodeWizard
  • 128,036
  • 21
  • 144
  • 167
Cenoc
  • 11,172
  • 21
  • 58
  • 92

1 Answers1

0

Use git rebase and/or git cherry-pick. See their manual pages for more info.

Sam Varshavchik
  • 114,536
  • 5
  • 94
  • 148