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!
Kids these days, I tell ya. All they care about is the technology. The video games. The bottled water. Oh, and the texting, always the texting. Back in my day, all we had was...OK, I had all of these things too. But I still don't get...
attachEvent. Times have changed but there are still a few functions each developer should...
I've been working with the Magento eCommerce solution a lot lately and I've taken a liking to a technique they use with the top bar within their administrative control panel. When the user scrolls below a specified threshold, the top bar becomes attached to the...
I recently ran...