This repository serves as a playground for people who wish to learn version control using Git and GitHub.
Please make note of the following instructions:
- There are none 😛
We don't care if you break things here. This is a playground which will make you familiar with popular git workflow. Use this for your practice.
-
Go through the resources that we have shared on the WhatsApp group. There are countless resources available on the internet so you can refer anything that you're comfortable with.
-
On the GitHub page for this repository, click on the Button "Fork".
-
Clone your forked repository to your computer:
For example, run this command inside your terminal:
git clone https://github.com/<your-github-username>/LetsGitStarted.git
Replace <your-github-username>!
-
Before you make any changes, keep your fork in sync to avoid merge conflicts:
git remote add upstream https://github.com/IEEE-SB-VIT-Pune/LetsGitStarted.git git pull upstream master
If you run into a merge conflict, you have to resolve the conflict. There are a lot of guides online, or you can try this one by opensource.com.
-
On your computer, open your text editor, and add your name to the
CONTRIBUTORS.md
file. -
Add the changes with
git add
,git commit
(write a good commit message, if possible):git add CONTRIBUTORS.md git commit -m "Add <your-github-username>"
Replace <your-github-username>!
-
Push your changes to your repository:
git push origin master
or
git push origin main
-
Go to the GitHub page of your fork, and make a pull request:
Read more about pull requests on the GitHub help pages.
-
Wait until one of the maintainers merges your pull request. If there are any conflicts, you will get a notification.
Congrats on completing all the steps! You're good to go now.