Skip to content

Commit 7c4cfb3

Browse files
authored
Merge pull request github#16198 from github/repo-sync
repo sync
2 parents b919515 + 9051613 commit 7c4cfb3

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

.pa11yci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"http://localhost:4001/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account",
1010
"http://localhost:4001/en/github/authenticating-to-github/creating-a-strong-password",
1111
"http://localhost:4001/en/github",
12-
"http://localhost:4001/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line",
12+
"http://localhost:4001/en/github/importing-your-projects-to-github/adding-locally-hosted-code-to-github",
1313
"http://localhost:4001/en/actions",
1414
"http://localhost:4001/en/github/authenticating-to-github/creating-a-personal-access-token",
1515
"http://localhost:4001/en/github/authenticating-to-github/checking-for-existing-ssh-keys",
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
---
2-
title: Adding an existing project to GitHub using the command line
3-
intro: 'Putting your existing work on {% data variables.product.product_name %} can let you share and collaborate in lots of great ways.'
2+
title: Adding locally hosted code to GitHub
3+
intro: 'Learn how to add existing source code or repositories to {% data variables.product.product_name %} from the command line using {% data variables.product.prodname_cli %} or Git Commands. Then, share your code and invite others to work with you.'
44
redirect_from:
55
- /articles/add-an-existing-project-to-github
66
- /articles/adding-an-existing-project-to-github-using-the-command-line
77
- /github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
88
- /github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line
9+
- /get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line
910
versions:
1011
fpt: '*'
1112
ghes: '*'
1213
ghae: '*'
1314
ghec: '*'
14-
shortTitle: Add a project locally
15+
shortTitle: Add locally hosted code
1516
---
1617

17-
## About adding existing projects to {% data variables.product.product_name %}
18+
## About adding existing source code to {% data variables.product.product_name %}
19+
20+
If you have existing source code or repositories stored locally on your computer or private network you can add them to {% data variables.product.product_name %} by typing commands in a terminal. You can do this by typing Git commands directly, or by using {% data variables.product.prodname_cli %}.
21+
22+
{% data variables.product.prodname_cli %} is an open source tool for using {% data variables.product.prodname_dotcom %} from your computer's command line. {% data variables.product.prodname_cli %} can simplify the process of adding an existing project to {% data variables.product.product_name %} using the command line. To learn more about {% data variables.product.prodname_cli %}, see "[About {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)."
1823

1924
{% tip %}
2025

@@ -24,9 +29,7 @@ shortTitle: Add a project locally
2429

2530
{% data reusables.repositories.sensitive-info-warning %}
2631

27-
## Adding a project to {% data variables.product.product_name %} with {% data variables.product.prodname_cli %}
28-
29-
{% data variables.product.prodname_cli %} is an open source tool for using {% data variables.product.prodname_dotcom %} from your computer's command line. {% data variables.product.prodname_cli %} can simplify the process of adding an existing project to {% data variables.product.product_name %} using the command line. To learn more about {% data variables.product.prodname_cli %}, see "[About {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)."
32+
## Adding a local repository to {% data variables.product.product_name %} with {% data variables.product.prodname_cli %}
3033

3134
1. In the command line, navigate to the root directory of your project.
3235
1. Initialize the local directory as a Git repository.
@@ -47,7 +50,7 @@ shortTitle: Add a project locally
4750

4851
1. Alternatively, to skip all the prompts, supply the path to the repository with the `--source` flag and pass a visibility flag (`--public`, `--private`, or `--internal`). For example, `gh repo create --source=. --public`. Specify a remote with the `--remote` flag. To push your commits, pass the `--push` flag. For more information about possible arguments, see the [GitHub CLI manual](https://cli.github.com/manual/gh_repo_create).
4952

50-
## Adding a project to {% data variables.product.product_name %} without {% data variables.product.prodname_cli %}
53+
## Adding a local repository to {% data variables.product.product_name %} using Git
5154

5255
{% mac %}
5356

content/get-started/importing-your-projects-to-github/importing-source-code-to-github/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ children:
1818
- /importing-a-repository-with-github-importer
1919
- /updating-commit-author-attribution-with-github-importer
2020
- /importing-a-git-repository-using-the-command-line
21-
- /adding-an-existing-project-to-github-using-the-command-line
21+
- /adding-locally-hosted-code-to-github
2222
- /source-code-migration-tools
2323
shortTitle: Import code to GitHub
2424
---

content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ featuredLinks:
99
popular:
1010
- /pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
1111
- /authentication
12-
- /github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
12+
- /get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github
1313
- /get-started/getting-started-with-git/managing-remote-repositories
1414
- /pages
1515
versions: '*'

content/repositories/working-with-files/managing-files/adding-a-file-to-a-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ You can upload an existing file to a repository on {% ifversion ghae %}{% data v
7272

7373
## Further reading
7474

75-
- "[Adding an existing project to GitHub using the command line](/articles/adding-an-existing-project-to-github-using-the-command-line)"
75+
- "[Adding locally hosted code to {% data variables.product.product_name %}](/get-started/importing-your-projects-to-github/importing-source-code-to-github//adding-locally-hosted-code-to-github)"

0 commit comments

Comments
 (0)