To clone the repository using HTTPS, under "HTTPS", click. On, navigate to your fork of the Spoon-Knife repository. If you do not select this option, all branches will be copied into the new fork. Optionally, select Copy the DEFAULT branch only.įor many forking scenarios, such as contributing to open-source projects, you only need to copy the default branch. Optionally, in the "Description" field, type a description of your fork. Optionally, to further distinguish your fork, in the "Repository name" field, type a name. Under "Owner," select the dropdown menu and click an owner for the forked repository.īy default, forks are named the same as their upstream repositories. In the top-right corner of the page, click Fork. On, navigate to the octocat/Spoon-Knife repository. You can practice setting the upstream repository using the same octocat/Spoon-Knife repository you just forked. To do this, you'll need to use Git on the command line. In this case, it's good practice to regularly sync your fork with the upstream repository. You might fork a project to propose changes to the upstream repository. For more information, see " Set up Git." Forking a repository If you haven't yet, first set up Git and authentication with from Git. You can also take a free GitHub Skills course on maintaining open source communities. For more information, see " Choose an open source license" at .įor more information on open source, specifically how to create and grow an open source project, we've created Open Source Guides that will help you foster a healthy open source community by recommending best practices for creating and maintaining repositories for your open source project. When creating your public repository from a fork of someone's project, make sure to include a license file that determines how you want your project to be shared with others. For more information, see the " About the Open Source Initiative" on the Open Source Initiative.įor more information about applying open source principles to your organization's development work on, see GitHub's white paper " An introduction to innersource." Open source software is based on the idea that by sharing code, we can make better, more reliable software. Use someone else's project as a starting point for your own idea. Submit a pull request to the project owner.Rather than logging an issue for a bug you have found, you can: For more information, see " Working with forks." Propose changes to someone else's projectįor example, you can use forks to propose changes related to fixing a bug. 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. In the File menu, click Clone Repository.A fork is a new repository that shares code and visibility settings with the original “upstream” repository. For more information, see " Cloning a repository from GitHub to GitHub Desktop". You can also clone a repository directly from GitHub or GitHub Enterprise. For more information, see " Managing fork behavior". Any existing forks default to contributing changes to their upstream repositories. You can choose to use your fork to contribute to the original upstream repository or to work independently on your own project. When you try to use GitHub Desktop to clone a repository that you do not have write access to, GitHub Desktop will prompt you to create a fork automatically. For more information, see " About forks." You can create a pull request to propose that maintainers incorporate the changes in your fork into the original upstream repository. To make changes without affecting the original project, you can create a separate copy by forking the repository. When you clone a repository, any changes you push to GitHub will affect the original repository. For more information, see " Syncing your branch in GitHub Desktop." If you own a repository or have write permissions, you can sync between the local and remote locations. You can create a local copy of any repository on GitHub that you have access to by cloning the repository. You can clone or fork a repository with GitHub Desktop to create a local repository on your computer. Repositories on GitHub are remote repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |