Check out master

Check out master branch to fix a bug

Now you get the call that there is an issue with the website, and you need to fix it immediately. With Git, you don’t have to deploy your fix along with the iss53 changes you’ve made, and you don’t have to put a lot of effort into reverting those changes before you can work on applying your fix to what is in production.

All you have to do is switch back to your master branch!

git checkout master

At this point, your project working directory is exactly the way it was before you started working on issue #53, and you can concentrate on your hotfix 👍

Last updated