About local repositories
Repositories on GitHub are remote repositories. You can clone or fork a repository with GitHub Desktop to create a local repository on your computer.
You can create a local copy of any repository on GitHub that you have access to by cloning the repository. If you own a repository or have write permissions, you can sync between the local and remote locations. 詳しい情報については、「ブランチを同期する」を参照してください。
When you clone a repository, any changes you push to GitHub will affect the original repository. To make changes without affecting the original project, you can create a separate copy by forking the repository. You can create a pull request to propose that maintainers incorporate the changes in your fork into the original upstream repository. 詳しい情報については「フォークについて」を参照してください。
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. You can choose to use your fork to contribute to the original upstream repository or to work independently on your own project. Any existing forks default to contributing changes to their upstream repositories. You can modify this choice at any time. For more information, see "Managing fork behavior".
リポジトリをGitHub、またはGitHub Enterpriseから直接クローンすることもできます。 詳しい情報については、「GitHub から GitHub Desktop にリポジトリをクローンする」を参照してください。
リポジトリをクローンする
-
Fileメニューで、Clone Repository(リポジトリのクローン)をクリックしてください。
-
クローンしたいリポジトリの場所に対応するタブをクリックしてください。 URLをクリックし、リポジトリの場所を入力することもできます。
-
クローンしたいリポジトリをリストから選択します。
-
Click Choose... and navigate to a local path where you want to clone the repository.
-
Cloneをクリックします。
リポジトリをフォークする
If you clone a repository that you do not have write access to, GitHub Desktop will create a fork. After creating or cloning a fork, GitHub Desktop will ask how you are planning to use the fork.
-
Fileメニューで、Clone Repository(リポジトリのクローン)をクリックしてください。
-
クローンしたいリポジトリの場所に対応するタブをクリックしてください。 URLをクリックし、リポジトリの場所を入力することもできます。
-
クローンしたいリポジトリをリストから選択します。
-
Click Choose... and navigate to a local path where you want to clone the repository.
-
Cloneをクリックします。
-
If you plan to use this fork for contributing to the original upstream repository, click To contribute to the parent project.
-
If you plan to use this fork for a project not connected to the upstream, click For my own purposes.
-
Click Continue.
Managing fork behavior
You can change how a fork behaves with the upstream repository in GitHub Desktop.
-
Open the Repository menu, then click Repository settings....
-
Click Fork behavior, then select how you want to use the fork.
-
[Save] をクリックします。