how to make a pr using git bash or terminal?
First go and fork
-
~$ git clone <your-forked-URL> - Make changes
-
~$ git checkout -b branch-name -
~$ git add . -
~$ git commit -m "commit message" -
~$ git push origin masterThis 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.
-
~$ 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 -
~$ git pull upstream masterthis will update your local project with the latest changes