A beginner-friendly Git & GitHub template repository to help you learn and practice Git and GitHub basics. Accompanies our Git Gud: A Guide to Git & GitHub workshop.
Click the green "Use this template" button above to create your own copy of this repo.
- Go to https://github.com/compsci-adl/git-gud
- Use this template
- Clone your repo
- Open repo in VS Code
Edit INTRO.md by adding your name to the description, stage your changes, make a commit and push it.
Create and switch to a new branch called feature/more-info and update INTRO.md to include your city and country and whether you are a uni student. Then commit changes and push. Repeat for feature/duck-info with below info:
-
First Name: Donald
-
Last Name: Duck
-
City: Duckburg
-
Country: United States
-
Are you a university student?
- At The University of Adelaide
- At another university
- No
Merge your new branch into the main branch by making a PR and clicking squash and merge. Delete the branch when done.
Switch to the feature/duck-info branch and try to make a PR for it. Fix the merge conflicts.
Modify INTRO.md, stash the changes, and then apply them.
- For INTRO.md, make and commit two changes (no need to push them)
- Use
git log
to find the commit hashes - Reset: Run
git reset --soft <first-commit-hash>
to move HEAD back but keep changes staged - Check the status with
git status
- Revert: Run
git revert <second-commit-hash>
to create a new commit that undoes that change - Check the commit history with
git log
- Go to the CS Club GitHub Organisation https://github.com/compsci-adl
- Find some projects you like
- Click the ⭐ button at the top-right of the repository page