What is the difference between git push and git pull?

前端 未结 4 1297
北海茫月
北海茫月 2021-01-31 07:37

I just stumbled over something peculiar today. I asked a co-worker at my summer job to help me set up a new remote git repo for my code and there was a lot of confusion about wh

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 07:46

    In my view you can either let users push their commits to some repository that's considered to be "the master", or you let them send pull requests to a single user that has permission to modify said "master".

    Github, for example, won't let non-contributors push to the repository, but will allow them to send pull requests, so that the contributors can integrate their changes.

提交回复
热议问题