Visit Multiple Realities
Being able to revert to a previous commit is great; it’s like time travel. You can always revisit your past. But why stop at just one past?
Git has a really neat feature called “branches.” These aren’t like branches on a tree, but more like branches in the space-time continuum: they are alternate realities, or alternate timelines like in science-fiction stories.
Here’s how you might use branches: Suppose you have everything working, and maybe you’ve even released your plugin to the world. You want to experiment with a new feature or two, but you need the current version of your plugin around as well, in case there are any fixes you need to make for your users. You need two different timelines: one where the plugin ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access