user24
user24

Reputation: 119

How can merge uncommited changes with other branch?

I have the following scenario:

  1. I have two branches: master and testing
  2. I checked out the master branch and modified some files
  3. Then I realised that I should have done those changes on the testing branch and not the master branch

I don't want to commit on master branch. How can have those changes made on the testing branch?

Upvotes: 0

Views: 38

Answers (1)

Peter Lundgren
Peter Lundgren

Reputation: 9197

git checkout testing

or, if git refuses to do that

git stash
git checkout testing
git stash pop

Upvotes: 2

Related Questions