Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Transpiling with Standalone Babel CLI

Max Pinomaa
Max Pinomaa
2,647 Points

Can't git checkout: "Your local changes to the following files would be overwritten by checkout: .babelrc"

Hi I'm doing the Babel workshop, and I'm trying to "git checkout" to the webpack-lesson, using the command "git checkout webpack-lesson". But I get this:

"error: Your local changes to the following files would be overwritten by checkout: .babelrc Please commit your changes or stash them before you switch branches. Aborting"

I tried to commit the changes but it didn't change anything. And the branch doesn't change. If I do "git branch" I can't even see the webpack-lesson branch. I'm trying to do this in the git branch called "cli-lesson".

Hi, try to git stash the changes you made.