GIT: Do I need to commit my branch before checking out another branch, what about stashing?

后端 未结 2 500
既然无缘
既然无缘 2021-01-01 17:51

I\'m new to Git and a bit confused. I have a Master branch and have created a second feature branch.

If I make changes in my feature branch and then switch to Mas

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 18:14

    You can't change to another branch unless you clean your tree. This is done by committing your changes, reverting them or saving them to the stash.

提交回复
热议问题