I don’t think there is a proper answer above to this actually important topic when working with the engine source, so here is what I am doing:
-
open a command line shell in the folder of your git repository (if you are using GitHub Desktop, you can use “Repository/Open in command prompt” to do this)
-
check all the remotes you currently have with the following command:
git remote -v
You should have only the origin remote which is pointing to your fork (“https://github.com/yourusername/UnrealEngine.git”)
- you need to add a remote named “upstream” pointing to the actual parent fork, so type this:
git remote add upstream https://github.com/EpicGames/UnrealEngine.git
You are only doing this once, no need to add the remote every time.
- now you get the changes from the upstream remote:
git fetch upstream
- then, you need to merge them with your local stuffs:
git merge upstream/release
(this assumes you are working on the release branch, update accordingly)
- then, you push those changes back to your private fork, you can use the command line or if using GitHub Desktop, click “Push Origin”. Then you can look at your repo on GitHub website and you’ll see it updated.
To UE Staff: the documentation about building from source should be updated with such information, it is currently explaining how to fork the source but not how to update the private fork.