Skip to content

annaduan09/Github-conflict-demo

Repository files navigation

Urban Tech Club Github Conflict Demo 😈

Oct 1, 2024 Anna Duan

Merge conflict vibes

In this demo, participants will learn the basics of using Github repositories for version control, and practice the following functions:

  • Fork
  • Clone
  • Commit
  • Push

They will also get practice collaborating on repositories, including best practices for working simultaneously and resolving conflicts. Data for this activity comes from OpenDataPhilly.

Part 1: Using Github repositories

  1. Fork this repo
  2. Clone it to your laptop in Github desktop by pasting the repo URL
  3. Edit the markdown, slightly changing the code for the map. Save once you're satisfied.
  4. Go to Github Desktop to commit and push your changes.
  5. Go to github.com to see your changes reflected.

Part 2: Collaborating and resolving conflicts

  1. Pair up. Person A should invite the Person B to collaborate on their forked repo in settings.
  2. Person B clones Person A's repo to their laptop.
  3. Person A edits the map, then saves, commits, and pushes.
  4. THIS IS IMPORTANT: Without pulling origin, Person B edits the same map, then saves, commits, and pushes.
  5. At this point, you should have your first conflict! Conflicts in Github are marked by the following: <<<<<<<, =======, >>>>>>>.
  6. Remove/keep the final changes you and your partner agree on. Also delete the conflict markers.
  7. Once you're both satisfied, click commit merge and push to Github.com.

Work together to resolve it safely and ask each other for help. Good luck!

About

Let's create and resolve a conflict in Github!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages