1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Merge pull request #54337 from github/repo-sync

Repo sync
This commit is contained in:
docs-bot
2025-02-10 13:37:22 -05:00
committed by GitHub
11 changed files with 24 additions and 17 deletions

View File

@@ -95,12 +95,12 @@ You can fork a repository on {% data variables.product.prodname_dotcom_the_websi
{% enddesktop %}
{% webui %}
## Cloning your forked repository
Right now, you have a fork of the Spoon-Knife repository, but you do not have the files in that repository locally on your computer.
{% webui %}
1. On {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom %}{% else %}{% data variables.location.product_location %}{% endif %}, navigate to **your fork** of the Spoon-Knife repository.
{% data reusables.repositories.copy-clone-url %}
{% data reusables.command_line.open_the_multi_os_terminal %}
@@ -126,6 +126,10 @@ Right now, you have a fork of the Spoon-Knife repository, but you do not have th
{% cli %}
## Cloning your forked repository
Right now, you have a fork of the Spoon-Knife repository, but you do not have the files in that repository locally on your computer.
{% data reusables.cli.cli-learn-more %}
To create a clone of your fork, use the `--clone` flag.
@@ -136,16 +140,6 @@ gh repo fork REPOSITORY --clone=true
{% endcli %}
{% desktop %}
{% data reusables.desktop.choose-clone-repository %}
{% data reusables.desktop.cloning-location-tab %}
{% data reusables.desktop.cloning-repository-list %}
{% data reusables.desktop.choose-local-path %}
{% data reusables.desktop.click-clone %}
{% enddesktop %}
## Configuring Git to sync your fork with the upstream repository
When you fork a project in order to propose changes to the upstream repository, you can configure Git to pull changes from the upstream repository into the local clone of your fork.