Skip to content

Instantly share code, notes, and snippets.

View gotcha's full-sized avatar

Godefroid Chapelle gotcha

View GitHub Profile
# Start a new chapter by branching the current branch off:
(branch chapter5)$ git checkout -b chapter6
# Make some commits:
(branch chapter6)$ git commit
(branch chapter6)$ git commit
# Oh noez, chapter 3 needs a bugfix
(branch chapter6)$ git checkout chapter3
(branch chapter3)$ git commit -m "Bugfix"