What is the difference between commits and pull requests

后端 未结 2 1872
鱼传尺愫
鱼传尺愫 2021-01-02 09:50

As I have read that commit means we have updated some code which has bugs and commited that code from where the issue is raised. But what is a pull request.

相关标签:
2条回答
  • 2021-01-02 10:16

    A commit is a discrete change to one or more files. It is a critical part of Git.

    A pull request is a request to merge one or more commits into a different branch. It is not part of Git; it is only part of GitHub (and similar services like BitBucket).


    See also the Try Git tutorial, in which you can explore some of the differences farther.

    0 讨论(0)
  • 2021-01-02 10:40

    A pull request is a way to 'commit' to a repository in which you don't have writing permissions.

    The maintainers of that repository will check your request and decide if they either want to merge it with your code or leave the original as it is.

    0 讨论(0)
提交回复
热议问题