Java and Technology weblog
Git rebase can be intimidating for newcomers, but it’s a powerful and versatile tool when you understand it.
Like git merge, rebase allows you to bring the changes from one branch into another. However instead of all those noisy commit merges you get with the merge command, rebase allows a tidier, linear commit history.
Technically, rebasing is the process of moving a branch to a new base commit, but if that isn’t clear, hopefully the diagrams and explanations below will illuminate.
Before we even start looking at rebase though, we will start with a quick review of merging.
Use the latest git tool, not the apple default
As part of the demo, he used watch to monitor a directory by running a command every few secs.
Covered git init, staging, reset and rebasing.
As described here, IntelliJ’s live templates let you easily insert predefined code fragments into your source code.
I have posted some of my most used templates below, a link to my complete list of template files on GitHub (as a reference for myself when I setup new IntelliJ environments) and the steps I took to add the IntelliJ settings file to GitHub.
Although the GitHub docs contains good info on how to add an existing GitHub project to your local machine, how to add an existing (unversioned) project from your local machine to GitHub was a little less clear to me. Here are the steps I use.