Git Pull vs. Pull Request

后端 未结 3 1961
小蘑菇
小蘑菇 2020-12-12 14:27

I\'m new to using Git, so I apologize if this is trivial. I have a private repository set up using Github and EGit.

To update and merge my local re

3条回答
  •  粉色の甜心
    2020-12-12 15:04

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

    If you are the maintainer of that repository, it seems you're making it a bit more difficult by pretending you're playing two roles in that workflow. You might as well merge locally your development branch into your master branch and push that master branch into your GitHub repository directly.

    (As a side note, if you're new to Git, I'd suggest using git fetch and then git merge instead of git pull. git pull is effectively git fetch followed by git merge, but doing them separately gives you better control over potential conflicts.)

提交回复
热议问题