/LetsGitStarted

This repository serves as a playground for people who wish to learn version control using Git and GitHub.

LetsGitStarted

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:

  1. 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.

How to get started?

  1. 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.

  2. On the GitHub page for this repository, click on the Button "Fork".

    fork repo image

  3. Clone your forked repository to your computer:

    code ui

    For example, run this command inside your terminal:

    git clone https://github.com/<your-github-username>/LetsGitStarted.git

    Replace <your-github-username>!

  4. 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.

  5. On your computer, open your text editor, and add your name to the CONTRIBUTORS.md file.

  6. 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>!

  7. Push your changes to your repository:

    git push origin master

    or

    git push origin main
  8. Go to the GitHub page of your fork, and make a pull request:

    pull request image

    Read more about pull requests on the GitHub help pages.

  9. 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.