Skip to Content
Git Recipes: A Problem-Solution Approach
book

Git Recipes: A Problem-Solution Approach

by Włodzimierz Gajda
December 2013
Beginner
420 pages
9h 17m
English
Apress
Content preview from Git Recipes: A Problem-Solution Approach

CHAPTER 7

image

Rebasing Branches

You can join two different development histories with the $ git merge and $ git rebase commands. In this chapter we will deal with rebasing. Merging was discussed in the previous chapter.

Generally speaking rebasing is a method for converting divergent branches into linear history. You can think about it as an automatic cherry-picking operation for moving a series of commits from one place on the graph to another. The advantages of using rebasing will become apparent when you start to cooperate with other developers in the same repository. By using the rebasing command you will be able to produce a clean linear history ...

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.
Start your free trial

You might also like

Pragmatic Version Control Using Git

Pragmatic Version Control Using Git

Travis Swicegood
Git: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss
Git in Practice

Git in Practice

Mike McQuaid

Publisher Resources

ISBN: 9781430261032Purchase book