As commits are pushed to your project on GitHub, you can keep your local copy of the project in sync with the remote repository.
You must sync your local branch with the remote repository to get any additional commits that have been added to the upstream branch since you originally created your branch.
Update your local branch
- In GitHub Desktop, switch to the local branch you want to update by clicking Current Branch and selecting the branch from the list.
- Click Fetch origin to update your branch.
- If there are commits on the remote branch, you can pull these by clicking Pull origin.
Merge another branch into your project branch
Note: Commits from branches on the remote repository can cause merge conflicts if they change the same line in a file you're working on in your project branch. For more information on resolving merge conflicts, see "Resolving a merge conflict on GitHub."
Select or type the name of the branch you want to merge into your project branch.
- Click Merge into BRANCH.
- Click Push origin to push your changes to the remote.