cse306 brief branch merge git tutorial
play

CSE306 Brief Branch & Merge git tutorial Dr. Carl Alphonce - PowerPoint PPT Presentation

CSE306 Brief Branch & Merge git tutorial Dr. Carl Alphonce alphonce@buffalo.edu 343 Davis Hall Branching and merging in git commit commit commit master 1 2 3 HEAD Starting point: a sequence of commits all in the master branch.


  1. CSE306 Brief Branch & Merge git tutorial Dr. Carl Alphonce alphonce@buffalo.edu 343 Davis Hall

  2. Branching and merging in git commit commit commit master 1 2 3 HEAD Starting point: a sequence of commits all in the master branch.

  3. Branching and merging in git commit commit commit master 1 2 3 HEAD bugfix Create a new branch named 'bugfix': git branch bugfix

  4. Branching and merging in git commit commit commit master 1 2 3 HEAD bugfix Move HEAD to new branch git checkout bugfix

  5. Branching and merging in git commit commit commit master 1 2 3 HEAD commit bugfix 4 Make a commit on bugfix branch

  6. Branching and merging in git commit commit commit master 1 2 3 HEAD commit bugfix 4 commit 5 Make another commit on bugfix branch

  7. Branching and merging in git commit commit commit master 1 2 3 HEAD commit bugfix 4 commit 5 Check out master again: git checkout master

  8. Branching and merging in git commit commit commit master 1 2 3 HEAD Merge bugfix commit 4 into master: git merge bugfix Since no other commits were commit bugfix 5 made to master in between this merge is straightforward.

Recommend


More recommend