![]() ![]() Note: If there are merge conflicts, GitHub Desktop will warn you above the Merge BRANCH into BRANCH button. You can also click URL to manually enter the repository location. Click the tab that corresponds to the location of the repository you want to clone. In the File menu, click Clone Repository. Click the branch you want to merge into the current branch, then click Merge BRANCH into BRANCH. In GitHub Desktop, if you attempt to clone a repository that you dont have write access to, a fork is automatically created for you. This brings your fork's master branch into sync with the upstream repository, without losing your local changes. Click Choose a branch to merge into BRANCH. Merge the changes from upstream/master into your local master branch. Commits to master will be stored in a local branch, upstream/master.Ĭheck out your fork's local master branch. Forks are often used to iterate on ideas or changes before they are proposed back to the upstream repository, such as in open source projects or when a user does not have write access to the upstream repository. Sync a fork of a repository to keep it up-to-date with the upstream repository.īefore you can sync your fork with an upstream repository, you must configure a remote that points to the upstream repository in Git.Ĭhange the current working directory to your local project.įetch the branches and their respective commits from the upstream repository. A fork is a new repository that shares code and visibility settings with the original upstream repository. ![]() Verify the new upstream repository you've specified for your fork. Review the details about the commits from the upstream repository, then click Update branch. Above the list of files, select the Sync fork dropdown menu. We recommend completing the tutorial, but if you want to explore GitHub Desktop by creating a new repository, this guide will walk you through using GitHub Desktop to work on a Git repository. Specify a new remote upstream repository that will be synced with the fork. On GitHub, navigate to the main page of the forked repository that you want to sync with the upstream repository. The tutorial is available if you do not have any repositories on GitHub Desktop yet. List the current configured remote repository for your fork. This also allows you to sync changes made in the original repository with the fork. Configuring a remote repository for a fork. You must configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository. On GitHub Enterprise Server, navigate to the main page of the forked repository that you want to sync with the upstream repository. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |