pull request in git code example
Example 1: difference between pull and pull request
If you use git pull, you pull the changes from the remote repository
into yours.
If you send a pull request to another repository, you ask their
maintainers to pull your changes into theirs (you more or less ask
them to use a git pull from your repository).
Example 2: pull from existing git repo
git init .
git remote add origin [url of the repo]
git fetch origin
// To push
git push --set-upstream origin master
git branch -f master origin/master
Example 3: pull from a brrrnch in git
$ git fetch origin other-branch
Example 4: how to send a pull request in git
git push origin some-branch
Example 5: how to make a pr in github
git clone [[email protected]](mailto:[email protected]):kapehe-ok/react-git-pr.git