git stash changes apply to new branch?

The Solution to git stash changes apply to new branch? is


Is the standard procedure not working?

  • make changes
  • git stash save
  • git branch xxx HEAD
  • git checkout xxx
  • git stash pop

Shorter:

  • make changes
  • git stash
  • git checkout -b xxx
  • git stash pop

~ Answered on 2011-08-03 10:36:23


Most Viewed Questions: