Skip to content

Instantly share code, notes, and snippets.

@piferdg
Last active October 5, 2018 16:52
Show Gist options
  • Save piferdg/74331a8df9f00ff6a324cc74e5afb396 to your computer and use it in GitHub Desktop.
Save piferdg/74331a8df9f00ff6a324cc74e5afb396 to your computer and use it in GitHub Desktop.
Advanced Git

Advanced Git

The goal of this drill is to create a poem using a more advanced git workflow.

  • In your group, one person should create a git repository.

  • The rest of the members of your group should clone it onto their machine.

  • One person will create an index.html document with the basic parts of an html document in it.

  • Push that document up to the repo. Don't forget about remotes.

  • Everyone will pull that change down to their local repo.

  • Next person will create a feature branch git checkout -b branchname

  • In that branch they will write the first line of the poem.

  • Add, commit and push to your branch, remember: git push remote branch

  • Submit a pull request from your branch to master branch

  • Merge that branch in

  • Repeat.

  • You can also add a styles.css document to style the text that you can all work on concurrently.

Resuources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment