This repository is designed to help new members familiarize themselves with Git and GitHub by practicing common workflows such as forking, cloning, committing, and creating pull requests.
Forking creates a personal copy of this repository in your GitHub account.
- Click on the "Fork" button at the top right corner of the repository page.
- Your GitHub account will now have a copy of this repository.
Now, download your forked repository to your computer.
Click the "Code" button in your forked repository.
Copy the HTTPS or SSH link.
Open your terminal (Command Prompt, Git Bash, or VS Code terminal) and run:
git clone https://github.com/YOUR-USERNAME/git-intro.git
(Replace
YOUR-USERNAMEwith your actual GitHub username.)Move into the cloned folder:
cd git-intro
Open the repository folder in a text editor (VS Code, Sublime, etc.).
Open the
members.mdfile.Add your details in the format below:
- Name: Your Name Course: Your Course Year: What year it is Profession: Cybersecurity,Designer,Fullstack Developer,Product ManagerExample:
- Name: John Doe Course: Computer Science Year: 2025 Profession: Back-end Dev
After adding your details, save the file and go back to the terminal. Run:
git add members.mdThis stages your changes so Git can track them.
Now, commit the changes with a descriptive message:
git commit -m "Added [Your Name] to members.md"(Replace [Your Name] with your actual name.)
Now, send the changes to your GitHub account:
git push origin main(If the repository uses master instead of main, use git push origin master.)
- Go to your forked repository on GitHub.
- Click on "Compare & pull request".
- Add a message like:
"Added [Your Name] to members.md" - Click "Create pull request".
🎉 You did it! 🎉 Now, wait for your PR to be reviewed and merged.
If you’re stuck, don’t worry! Here’s what you can do:
- Ask any of the club leads for help
- Ask for help in discussions
- Check out GitHub’s official documentation.
- Watch Git tutorials on YouTube
Now let's move to another branch in our repository(think of it as another version of this main branch):
git checkout resources