0
  • I'm on branch A and made changes.
  • The changes have not yet been added or committed.
  • These changes are intended for branch B.

How do I go about adding and committing these changes to branch B?

heikreus
  • 35
  • 1
  • 5
  • If you haven't committed the changes yet, just `git checkout` the other branch. – Kevin Mar 17 '22 at 10:07
  • Thanks @Kevin! Go ahead and drop it as an answer and I'll mark it as such (otherwise I'll just answer my own question) – heikreus Mar 17 '22 at 10:15

1 Answers1

0

It all depends if you already committed the changes. Since you didn't commit the changes yet a git checkout should do the trick.

Kevin
  • 1,068
  • 5
  • 14
  • 16