change history with git

14
Change History With Git using rebase to maintain sanity

Upload: gsterndale

Post on 07-May-2015

1.518 views

Category:

Technology


4 download

DESCRIPTION

Using rebase to maintain sanity

TRANSCRIPT

Page 1: Change history with Git

Change History With Gitusing rebase to maintain sanity

Page 2: Change history with Git

Integrating changes across branches

Page 3: Change history with Git

mergeJoin two or more

development histories together

Page 4: Change history with Git

mergeJoin two or more

development histories together

Page 5: Change history with Git

merge madness

Page 6: Change history with Git

rebase Forward-port local commits

to the updated upstream head

Page 7: Change history with Git

rebase Forward-port local commits

to the updated upstream head

Page 8: Change history with Git

rebase sanity

Page 9: Change history with Git

Changing history withgit rebase interactive mode

Page 10: Change history with Git

interactive mode

• reorder

• edit

• drop

• squash

• split

Page 11: Change history with Git

interactive mode

$ git checkout my_feature_branch

$ git rebase --interactive master

Page 12: Change history with Git

changing history

$ git checkout master

$ git rebase --interactive e0a3a3

Page 13: Change history with Git

Warning!

• BAD for pushed commits

Page 14: Change history with Git

Resources

• screencast: http://peepcode.com/products/git

• gitx: http://gitx.frim.nl