Checkout the Previous Branch with git
Command line shortcuts are can be a huge time saver, which is why I like creating bash aliases and and enjoy other tricks I've found. I do have a list of tasks I don't yet have a shortcut for, like easy switching between my current branch and the previous branch. I have to do this often when I update master via remote pull and then rebasing a feature branch, and since many of my branch names include a hard to remember bug number, switching between branches is a pain.
I recently found out that you can switch the the previous branch you were on using the following command:
git checkout master
# Do whatever
git pull remote master
# Go back to the previous branch
git checkout -
- references the previous branch name, thus allowing you to navigate branches with ease!
Two years ago I documented my struggles with Imposter Syndrome and the response was immense. I received messages of support and commiseration from new web developers, veteran engineers, and even persons of all experience levels in other professions. I've even caught myself reading the post...
You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...
This article serves as a first step toward mastering SVG element animation. Included within are links to key resources for diving deeper, so bookmark this page and refer back to it throughout your journey toward SVG mastery.
An SVG element is a special type of DOM element...
Hey everyone! Before we get started, I just want to say it's damn hard to pick this few favorites on CodePen. Not because, as a co-founder of CodePen, I feel like a dad picking which kid he likes best (RUDE). But because there is just so...