Need To: Change Git Branch After Changes

Viewed 5588

Sometimes I forget to change my branch before I make code changes using Visual Studio Code. I've tried to change my branch after changes are made but I get a response like, 'Git: Your local changes to the following files would be overwritten by checkout'. How can I commit the changes to the branch that I needed to be working in?

2 Answers
Related