Skip to content

gramener/git-tactics-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git Tactics Workshop

This is a workshop for developers familiar with Git.

In this workshop, you'll practice version control techniques such as:

Exercise

This repository has 4 branches: master, branch-1, branch-2, and branch-3 in this structure:

* ....... (master) latest commits
* c30606f Add README.md
| * a50a8d3 (branch-2) Add genre
| * e1c06b2 Add original title (same as title)
| * 5088aa1 Add language
|/
| * 7100614 (branch-3) Add Amazon link
| * 90ab24f Add Goodreads link
| * 45cc81b Add publisher
|/
| * 87dbea0 (branch-1) Add author as Harry Potter
| * 5dd0d28 Add published date
|/
* 3ac9850 Add minimal styling
* b405c09 Add list of fields
* f294165 Add book description
* 9618a3c Add book heading
* 118d128 Create base scaffolding for a Harry Potter book page

You need to:

  1. Fork this repo into your namespace and clone your fork
  2. Checkout branch-1 and undo the last commit, which is incorrect ("Add author as Harry Potter")
  3. In branch-1, add a new commit with the text <p>Author: JK Rowling</p> (commit message: "Add author")
  4. Merge-squash the branch-1 branch on to master (commit message: "Add published date and author")
  5. Cherry-pick the 1st and 3rd commits in branch-2 into master
  6. Rebase branch-3 on top of master, fixing merge conflicts
  7. Merge branch-3 into master and push the master branch into your repo
  8. Find the commit ID that first added the word FIELDS
  9. Find the commit ID to blame for the <link> tag in index.html
  10. Create an issue titled Exercise submission with this description:
    • Link to repo: _______
    • Commit ID adding FIELDS: _______
    • Commit ID to blame for <link>: _______

You can test if your commits are correct by running pytest locally.

Video

Git Tactics Workshop Video

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published