jobChallenge.dev

how to make a pr using git bash or terminal?

First go and fork

  1. ~$ git clone <your-forked-URL>
  2. Make changes
  3. ~$ git checkout -b branch-name
  4. ~$ git add .
  5. ~$ git commit -m "commit message"
  6. ~$ git push origin master

    This pushes it to your fork.

Now go to your github and create a PR. It will create against the main repo.

When you want to get changes of the main repo and not the fork.

  1. ~$ git remote add upstream <original-repo-URL>

    eg: In this challenge it will be

    ~$ git remote add upstream https://github.com/tanaypratap/teamtanay.jobchallenge.dev.git
  2. ~$ git pull upstream master

    this will update your local project with the latest changes