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 trialMichael Thomas
10,910 PointsSwitched Git branch, but sass file doesn't revert back, why?
I'm developing on the Staging branch, and I switched to a Test branch to build a new feature.
I decide that my idea on the Test branch isn't what I wanted and so I switch back to the Staging branch, but to my surprise, the Sass file doesn't revert back to how things were before I began development on the new Test branch?
What am I doing wrong?
Here's what I have in my gitignore file:
.sass-cache/
style.css.map
images/
fonts/
Michael Thomas
10,910 PointsI just found this
Atom doesn't update file buffers correctly when switching branches. #4982 https://github.com/atom/atom/issues/4982
I read the whole thread, and if you have this problem there is a package that apparently fixes the issue https://atom.io/packages/file-watcher
Failing that, you might want to try Visual Studio Code, as per the suggestions in the thread!
Jonathan Grieve
Treehouse Moderator 91,253 PointsVery interesting thread. I use Notepad++ as my text editor although I do have and have used Atom. I've never had any problems with N++ reverting files staged in Git. But i'll keep a look out for this as right now I haven't delved too much into past branches but building them up as I go through my project.
Kevin Korte
28,149 PointsInteresting, I'm a heavy user of of Atom and have never experience that.
Michael Thomas
10,910 PointsMichael Thomas
10,910 PointsOk, something really strange, I'm using Atom, I just switched back to my Staging branch, but this time, Sass reverted back to how it was, BUT, my index.html file stayed the same?! Take note, this time when I switched back to the Staging branch I was currently in the index.html file in Atom...