How git forking works?

后端 未结 3 1263
遥遥无期
遥遥无期 2021-01-29 09:10

So I am signed in github and I fork a project . Will my forked repo get updated everytime the original repo updates ? Or should I do forking from the original repo everytime so

3条回答
  •  灰色年华
    2021-01-29 09:43

    When you want to get updates from the original version and merge these with your version, you can use the git pull command. More info is on this here: https://docs.github.com/en/free-pro-team@latest/github/getting-started-with-github/github-glossary#pull

    If you choose to fork a repository it copies this repository to your profile. It is essentially the same as cloning but with a fork, a connection between your 'forked' version and the original version is maintained (for pull requests).

    This is a very quick and simple description. There is more info here: https://github.community/t/the-difference-between-forking-and-cloning-a-repository/10189

提交回复
热议问题