This repository is a hands-on sandbox for anyone learning how to use Git and GitHub. Whether you're just starting out or need structured practice, this will walk you through everything from cloning to making pull requests. The goal: make you comfortable with version control and collaborating on open-source platforms.
- Basic Git commands
- Setting up Git
- Forking and cloning repositories
- Working with branches
- Committing and pushing changes
- Creating pull requests
- Resolving merge conflicts
- Collaborating with others
Check if Git is already installed:
git --versionIf not, download from https://git-scm.com/downloads
git config --global user.name "Your Name"
git config --global user.email "[email protected]"FORK → CLONE → BRANCH → COMMIT → PUSH → PULL REQUEST → MERGE
Forking creates a personal copy of someone else’s repository on your GitHub account. It lets you freely experiment with changes without affecting the original project
- Go to the repo page on GitHub
- Click the Fork button on the top-right

- Now edit the name to suit you and click on create fork

- Go to the repo page on github
- Click on the green
Code buttonand then copy the link
- Now open your terminal run this command
git clone your-repo-link
cd github-basics # to enter the repoA branch is a separate line of development. It allows you to work on features or fixes without touching the main codebase until you’re ready
git checkout -b your-branch-nameOpen this file in your preferred code editor and add your name to CONTRIBUTORS.md
git add .
git commit -m "add: <name> to CONTRIBUTORS.md"Use clear commit messages.
git push origin your-branch-name- Go to your forked repo on GitHub
- Click Compare & pull request
- Add a title and description
- Submit the PR to the original repo
To push updates to your fork:
git push origin mainIf there's a conflict: HOW DO I EXPLAIN THIS
- Commit often, with clear messages
- Keep your branches focused on one task
- Never commit secrets (e.g. passwords, API keys)
- Pull before pushing
- Review your code before submitting PRs