Let's practice Git!
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.
- 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
- 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.
- 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:
git add .
- Commit your changes with a meaningful commit message:
git commit -m "Add feature name"
- 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 at least 1 colleague's review.
- Once the PR is approved by addressing reviewers feedback, merge the PR.
- Checkout
your-branch-name
and pull the latest changes:git checkout your-branch-name git pull origin your-branch-name
- Iterate 6 - 13 till you implement all features.
- The same way, add README.md about yourself in your-name directory.
- Push
your-branch-name
to the remote repository. - Open a PR against the main and request the review to the admin
- The admin will review the PR and say Congrats if everything looks good.