On github, if I fork someone else’s project, I make changes. . The original was updated. . Do I want to merge his latest version to use rebase?

  git, question

On github, if I fork someone else’s project, I make changes. . The original was updated. . How can I merge his original into my own branch?

The method upstairs can, another way:
Use git command in your repo:
Create a new upstream (name is optional) remote remotegit remote add upstream https://github.com/username/reponame.gitThe link address is the source project address of your fork project.
Then fetch the code of upstreamgit fetch upstream
Finally, you can merge the code on upstream into your own branchgit merge upstream/masterIf it is not the master branch, it will be changed according to its own situation. If your code does not conflict with that on upstream, then everything will go smoothly.