Git Practice
Let's practice Git!
Overview
This repository is designed to help newbies practice using Git and GitHub by creating a simple todo app. Each participant will check out their own branch from the main branch, where they will work on their respective todo app in a directory named after their own name. The directory will also contain READMD.md file to provide some information about themselves. Finally, each participant will add a link to their directory in Contributors section of the root README.md file.
Instructions
Setup
- Fork and clone the repository to your local machine:
git clone https://github.com/[your-github-handle]/git-practice.git
cd git-practice
- Check out a new branch from the main branch with your name:
git checkout -b your-branch-name main
Development
- Inside the repository, create a new directory with your name:
mkdir your-name
cd your-name
- Create an
README.md file in the directory and provide some information about yourself.
- Develop your todo app in todo directory using any technology or framework you prefer.
Committing Changes
- Branch off
your-branch-name for any features you would like to implement:
git checkout -b your-branch-name-feature-name your-branch-name
- Once you have made progress on your todo app, add your changes to the staging area:
- Commit your changes with a meaningful commit message:
git commit -m "Add feature name"
Pushing Changes and Creating a Pull Request
- Push your branch to the remote repository:
git push origin your-branch-name-feature-name
- Visit the original repository on GitHub and create a pull request to merge your changes into the
your-branch-name branch.
Request Reviews
- Request at least 1 colleague's review.
- Once the PR is approved by addressing reviewers feedback, merge the PR.
Updating Your Branch with Latest Changes
- Checkout
your-branch-name and pull the latest changes:
git checkout your-branch-name
git pull origin your-branch-name
Iteration
- Iterate 6 - 13 till you implement all features.
- The same way, add README.md about yourself in your-name directory.
Add a Link to Directory
- Open the README.md file and add a link to your-name directory under the "Contributors" section.
Open a PR for all of your work
- Push
your-branch-name to the remote repository.
- Open a PR against the main and request the review to the admin
Congrats
- The admin will review the PR and say Congrats if everything looks good.
Contributors
- John Doe
- Sebastian Harvey
- White Collin
- Donald Ross
- Lucas Marvel
- Yusuke Nishikado
- Carisno Remes
- Andreas Fischer
- Nguyen Aiden
- WeiJie Zhang
- Alice Ibrahimovic
- Lysander Stewart
- Andersen Sven