Skip to content

Instantly share code, notes, and snippets.

@peterhurford
Last active July 29, 2023 04:30
Show Gist options
  • Save peterhurford/4d43aa5d6de114c0c741ba664c9c5ff5 to your computer and use it in GitHub Desktop.
Save peterhurford/4d43aa5d6de114c0c741ba664c9c5ff5 to your computer and use it in GitHub Desktop.
Git 101, with Exercises

Git 101, with Exercises

Git is the key tool we use to allow multiple people to work on the same code base. Git takes care of merging everyone's contributions smoothly. Hence, learning how to use Git is critical to contributing to open source.

Exercises

Exercise 1: Go through the Try Git Guide

Exercise 2: Learn How to file a github issue.

Exercise 3: Watch these videos:

Exercise 4: Skim Hadley Wickham's guide to git for an additional refernce.

Exercise 5: Create a repo on GitHub that contains a markdown file that answers these questions:

  • How do you see the files changed within each commit from git log?
  • How do you see the contents of what changed within each file from the git log?
  • What does HEAD refer to in the context of git? (Not to be confused with the "HEAD<<<<" one observes within merge conflict)
@rast5070
Copy link

Thank you for the information.

@Adrian19862
Copy link

Thank you for the information.

@Umme123-max
Copy link

Thank you for giving a detailed intro and all the information.

@john2895
Copy link

john2895 commented Apr 1, 2021

Thank you for the information.

@AmaanK03
Copy link

Thank you for the information.

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