Skip to content

Commit

Permalink
Changed title, links, updated intro and first section (#25875)
Browse files Browse the repository at this point in the history
* changed title, links, updated intro and first section

* Update content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md

Co-authored-by: hubwriter <hubwriter@github.com>

* updated phrasing to improve clarity

* Update content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md

Co-authored-by: hubwriter <hubwriter@github.com>

* Update content/get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github.md

Co-authored-by: hubwriter <hubwriter@github.com>

* updates to intro

Co-authored-by: hubwriter <hubwriter@github.com>
  • Loading branch information
dihydroJenoxide and hubwriter committed Mar 12, 2022
1 parent ae2b026 commit 5d50b10
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pa11yci
Expand Up @@ -9,7 +9,7 @@
"http://localhost:4001/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account",
"http://localhost:4001/en/github/authenticating-to-github/creating-a-strong-password",
"http://localhost:4001/en/github",
"http://localhost:4001/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line",
"http://localhost:4001/en/github/importing-your-projects-to-github/adding-locally-hosted-code-to-github",
"http://localhost:4001/en/actions",
"http://localhost:4001/en/github/authenticating-to-github/creating-a-personal-access-token",
"http://localhost:4001/en/github/authenticating-to-github/checking-for-existing-ssh-keys",
Expand Down
@@ -1,20 +1,25 @@
---
title: Adding an existing project to GitHub using the command line
intro: 'Putting your existing work on {% data variables.product.product_name %} can let you share and collaborate in lots of great ways.'
title: Adding locally hosted code to GitHub
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.'
redirect_from:
- /articles/add-an-existing-project-to-github
- /articles/adding-an-existing-project-to-github-using-the-command-line
- /github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
- /github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line
- /get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line
versions:
fpt: '*'
ghes: '*'
ghae: '*'
ghec: '*'
shortTitle: Add a project locally
shortTitle: Add locally hosted code
---

## About adding existing projects to {% data variables.product.product_name %}
## About adding existing source code to {% data variables.product.product_name %}

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 %}.

{% 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)."

{% tip %}

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

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

## Adding a project to {% data variables.product.product_name %} with {% data variables.product.prodname_cli %}

{% 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)."
## Adding a local repository to {% data variables.product.product_name %} with {% data variables.product.prodname_cli %}

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

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).

## Adding a project to {% data variables.product.product_name %} without {% data variables.product.prodname_cli %}
## Adding a local repository to {% data variables.product.product_name %} using Git

{% mac %}

Expand Down
Expand Up @@ -18,7 +18,7 @@ children:
- /importing-a-repository-with-github-importer
- /updating-commit-author-attribution-with-github-importer
- /importing-a-git-repository-using-the-command-line
- /adding-an-existing-project-to-github-using-the-command-line
- /adding-locally-hosted-code-to-github
- /source-code-migration-tools
shortTitle: Import code to GitHub
---
Expand Down
2 changes: 1 addition & 1 deletion content/index.md
Expand Up @@ -9,7 +9,7 @@ featuredLinks:
popular:
- /pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
- /authentication
- /github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
- /get-started/importing-your-projects-to-github/importing-source-code-to-github/adding-locally-hosted-code-to-github
- /get-started/getting-started-with-git/managing-remote-repositories
- /pages
versions: '*'
Expand Down
Expand Up @@ -72,4 +72,4 @@ You can upload an existing file to a repository on {% ifversion ghae %}{% data v

## Further reading

- "[Adding an existing project to GitHub using the command line](/articles/adding-an-existing-project-to-github-using-the-command-line)"
- "[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 comments on commit 5d50b10

Please sign in to comment.