Skip to content

Commit 6b37bf8

Browse files
authored
Rename "Getting started with Git" to "Git basics" (#54512)
1 parent acdc94d commit 6b37bf8

File tree

53 files changed

+92
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+92
-79
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Use the table of contents icon <img alt="Table of contents icon" src="/contribut
1313
To get an overview of the project, read the [README](../README.md) file. Here are some resources to help you get started with open source contributions:
1414

1515
- [Finding ways to contribute to open source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
16-
- [Set up Git](https://docs.github.com/en/get-started/getting-started-with-git/set-up-git)
16+
- [Set up Git](https://docs.github.com/en/get-started/git-basics/set-up-git)
1717
- [GitHub flow](https://docs.github.com/en/get-started/using-github/github-flow)
1818
- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
1919

content/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Date: Sun, 27 Apr 2014 15:36:39 +0530
6868
Subject: [PATCH] updated index for better welcome message
6969
```
7070

71-
The email address in the `From:` field is the address that was set in the [local git config settings](/get-started/getting-started-with-git/set-up-git). In this example, the email address used for the commit is `[email protected]`.
71+
The email address in the `From:` field is the address that was set in the [local git config settings](/get-started/git-basics/set-up-git). In this example, the email address used for the commit is `[email protected]`.
7272

7373
If the email address used for the commit is not connected to your account on {% data variables.product.prodname_dotcom %}, you must [add the email address](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account) to your account on {% data variables.product.prodname_dotcom %}. Your contributions graph will be rebuilt automatically when you add the new address.
7474

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/remembering-your-github-username-or-email.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ shortTitle: Find your username or email
4141

4242
## Finding your username in your `user.name` configuration
4343

44-
During set up, you may have [set your username in Git](/get-started/getting-started-with-git/setting-your-username-in-git). If so, you can review the value of this configuration setting:
44+
During set up, you may have [set your username in Git](/get-started/git-basics/setting-your-username-in-git). If so, you can review the value of this configuration setting:
4545

4646
```shell
4747
$ git config user.name

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/changing-your-github-username.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ After you change your username, {% data variables.product.github %} will automat
7070
* Web links to your existing repositories will continue to work. This can take a few minutes to complete after you make the change.
7171
* Command line pushes from your local repository clones to the old remote tracking URLs will continue to work.
7272

73-
If the new owner of your old username creates a repository with the same name as your repository, that will override the redirect entry and your redirect will stop working. Because of this possibility, we recommend you update all existing remote repository URLs after changing your username. For more information, see [AUTOTITLE](/get-started/getting-started-with-git/managing-remote-repositories).
73+
If the new owner of your old username creates a repository with the same name as your repository, that will override the redirect entry and your redirect will stop working. Because of this possibility, we recommend you update all existing remote repository URLs after changing your username. For more information, see [AUTOTITLE](/get-started/git-basics/managing-remote-repositories).
7474

7575
## Links to your previous profile page
7676

content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/merging-multiple-personal-accounts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ shortTitle: Merge multiple accounts
3636
> * Achievements are not able to be transferred between accounts.
3737
3838
1. [Transfer any repositories](/repositories/creating-and-managing-repositories/transferring-a-repository) from the account you want to delete to the account you want to keep. Issues, pull requests, and wikis are transferred as well. Verify the repositories exist on the account you want to keep.
39-
1. [Update the remote URLs](/get-started/getting-started-with-git/managing-remote-repositories) in any local clones of the repositories that were moved.
39+
1. [Update the remote URLs](/get-started/git-basics/managing-remote-repositories) in any local clones of the repositories that were moved.
4040
1. To attribute past commits to the new account, add the email address you used to author the commits to the account you're keeping. For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#your-local-git-commit-email-isnt-connected-to-your-account)
4141
1. [Delete the account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/deleting-your-personal-account) you no longer want to use.
4242

content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-github-app-that-responds-to-webhook-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following sections will lead you through setting up the following components
4949
1. Create a repository to store the code for your app. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/creating-a-new-repository).
5050
1. Clone your repository from the previous step. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/cloning-a-repository). You may use a local clone or {% data variables.product.prodname_github_codespaces %}.
5151
1. In a terminal, navigate to the directory where your clone is stored.
52-
1. If the directory doesn't already include a `.gitignore` file, add a `.gitignore` file. You will add content to this file later. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/getting-started-with-git/ignoring-files).
52+
1. If the directory doesn't already include a `.gitignore` file, add a `.gitignore` file. You will add content to this file later. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/git-basics/ignoring-files).
5353

5454
You will add more code to this repository in later steps.
5555

content/apps/creating-github-apps/writing-code-for-a-github-app/building-a-login-with-github-button-with-a-github-app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This tutorial will show you how to store the client ID and client secret in envi
8686
1. On the app's settings page, click **Generate a new client secret**. You will add the client secret to a `.env` file in a following step.
8787
1. Create a file called `.env` at the same level as your `Gemfile`.
8888
1. If your project doesn't already have a `.gitignore` file, create a `.gitignore` file at the same level as your `Gemfile`.
89-
1. Add `.env` to your `.gitignore` file. This will prevent you from accidentally committing your client secret. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/getting-started-with-git/ignoring-files).
89+
1. Add `.env` to your `.gitignore` file. This will prevent you from accidentally committing your client secret. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/git-basics/ignoring-files).
9090
1. Add the following contents to your `.env` file. Replace `YOUR_CLIENT_ID` with the client ID of your app. Replace `YOUR_CLIENT_SECRET` with the client secret for your app.
9191

9292
```text

content/apps/creating-github-apps/writing-code-for-a-github-app/building-ci-checks-with-a-github-app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The following sections will lead you through setting up the following components
7878
1. Clone your repository from the previous step. For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/cloning-a-repository). You may use a local clone or {% data variables.product.prodname_github_codespaces %}.
7979
1. In a terminal, navigate to the directory where your clone is stored.
8080
1. Create a Ruby file named `server.rb`. This file will contain all the code for your app. You will add content to this file later.
81-
1. If the directory doesn't already include a `.gitignore` file, add a `.gitignore` file. You will add content to this file later. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/getting-started-with-git/ignoring-files).
81+
1. If the directory doesn't already include a `.gitignore` file, add a `.gitignore` file. You will add content to this file later. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/git-basics/ignoring-files).
8282
1. Create a file named `Gemfile`. This file will describe the gem dependencies that your Ruby code needs. Add the following contents to your `Gemfile`:
8383

8484
```ruby copy

content/apps/creating-github-apps/writing-code-for-a-github-app/quickstart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Make sure that you are on a secure machine before performing these steps since y
6868

6969
### Create a `.env` file
7070

71-
Your cloned repository includes `.env` in the `.gitignore` file. This will prevent you from accidentally committing your app's credentials. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/getting-started-with-git/ignoring-files).
71+
Your cloned repository includes `.env` in the `.gitignore` file. This will prevent you from accidentally committing your app's credentials. For more information about `.gitignore` files, see [AUTOTITLE](/get-started/git-basics/ignoring-files).
7272

7373
1. Navigate to the directory where your clone of [github/github-app-js-sample](https://github.com/github/github-app-js-sample) is stored.
7474
1. Create a file called `.env` at the top level of this directory.

content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Before adding a new SSH key to your account on {% data variables.location.produc
3333

3434
You can add an SSH key and use it for authentication, or commit signing, or both. If you want to use the same SSH key for both authentication and signing, you need to upload it twice.
3535

36-
After adding a new SSH authentication key to your account on {% data variables.location.product_location %}, you can reconfigure any local repositories to use SSH. For more information, see [AUTOTITLE](/get-started/getting-started-with-git/managing-remote-repositories#switching-remote-urls-from-https-to-ssh).
36+
After adding a new SSH authentication key to your account on {% data variables.location.product_location %}, you can reconfigure any local repositories to use SSH. For more information, see [AUTOTITLE](/get-started/git-basics/managing-remote-repositories#switching-remote-urls-from-https-to-ssh).
3737

3838
{% data reusables.ssh.key-type-support %}
3939

content/authentication/keeping-your-account-and-data-secure/about-authentication-to-github.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ For more information, see [AUTOTITLE](/actions/security-guides/automatic-token-a
108108

109109
## Authenticating with the command line
110110

111-
You can access repositories on {% data variables.product.github %} from the command line in two ways, HTTPS and SSH, and both have a different way of authenticating. The method of authenticating is determined based on whether you choose an HTTPS or SSH remote URL when you clone the repository. For more information about which way to access, see [AUTOTITLE](/get-started/getting-started-with-git/about-remote-repositories).
111+
You can access repositories on {% data variables.product.github %} from the command line in two ways, HTTPS and SSH, and both have a different way of authenticating. The method of authenticating is determined based on whether you choose an HTTPS or SSH remote URL when you clone the repository. For more information about which way to access, see [AUTOTITLE](/get-started/git-basics/about-remote-repositories).
112112

113113
### HTTPS
114114

115115
You can work with all repositories on {% data variables.product.github %} over HTTPS, even if you are behind a firewall or proxy.
116116

117117
If you authenticate with {% data variables.product.prodname_cli %}, you can either authenticate with a {% data variables.product.pat_generic %} or via the web browser. For more information about authenticating with {% data variables.product.prodname_cli %}, see [`gh auth login`](https://cli.github.com/manual/gh_auth_login).
118118

119-
If you authenticate without {% data variables.product.prodname_cli %}, you must authenticate with a {% data variables.product.pat_generic %}. {% data reusables.user-settings.password-authentication-deprecation %} Every time you use Git to authenticate with {% data variables.product.github %}, you'll be prompted to enter your credentials, unless you cache them with a [credential helper](/get-started/getting-started-with-git/caching-your-github-credentials-in-git).
119+
If you authenticate without {% data variables.product.prodname_cli %}, you must authenticate with a {% data variables.product.pat_generic %}. {% data reusables.user-settings.password-authentication-deprecation %} Every time you use Git to authenticate with {% data variables.product.github %}, you'll be prompted to enter your credentials, unless you cache them with a [credential helper](/get-started/git-basics/caching-your-github-credentials-in-git).
120120

121121
### SSH
122122

content/authentication/keeping-your-account-and-data-secure/creating-a-strong-password.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ You can only use your password to log on to {% data variables.product.github %}
3434

3535
## Further reading
3636

37-
* [AUTOTITLE](/get-started/getting-started-with-git/caching-your-github-credentials-in-git)
37+
* [AUTOTITLE](/get-started/git-basics/caching-your-github-credentials-in-git)
3838
* [AUTOTITLE](/authentication/keeping-your-account-and-data-secure)

content/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ Username: YOUR-USERNAME
139139
Password: YOUR-PERSONAL-ACCESS-TOKEN
140140
```
141141

142-
{% data variables.product.pat_generic_caps %}s can only be used for HTTPS Git operations. If your repository uses an SSH remote URL, you will need to [switch the remote from SSH to HTTPS](/get-started/getting-started-with-git/managing-remote-repositories#switching-remote-urls-from-ssh-to-https).
142+
{% data variables.product.pat_generic_caps %}s can only be used for HTTPS Git operations. If your repository uses an SSH remote URL, you will need to [switch the remote from SSH to HTTPS](/get-started/git-basics/managing-remote-repositories#switching-remote-urls-from-ssh-to-https).
143143

144-
If you are not prompted for your username and password, your credentials may be cached on your computer. You can [update your credentials in the Keychain](/get-started/getting-started-with-git/updating-credentials-from-the-macos-keychain) to replace your old password with the token.
144+
If you are not prompted for your username and password, your credentials may be cached on your computer. You can [update your credentials in the Keychain](/get-started/git-basics/updating-credentials-from-the-macos-keychain) to replace your old password with the token.
145145

146-
Instead of manually entering your {% data variables.product.pat_generic %} for every HTTPS Git operation, you can cache your {% data variables.product.pat_generic %} with a Git client. Git will temporarily store your credentials in memory until an expiry interval has passed. You can also store the token in a plain text file that Git can read before every request. For more information, see [AUTOTITLE](/get-started/getting-started-with-git/caching-your-github-credentials-in-git).
146+
Instead of manually entering your {% data variables.product.pat_generic %} for every HTTPS Git operation, you can cache your {% data variables.product.pat_generic %} with a Git client. Git will temporarily store your credentials in memory until an expiry interval has passed. You can also store the token in a plain text file that Git can read before every request. For more information, see [AUTOTITLE](/get-started/git-basics/caching-your-github-credentials-in-git).
147147

148148
## Further reading
149149

content/authentication/troubleshooting-ssh/error-bad-file-number.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $ ssh -vT git@{% data variables.product.product_url %}
2727

2828
### Use HTTPS
2929

30-
Often, the simplest solution is to simply avoid SSH entirely. Most firewalls and proxies allow HTTPS traffic without issue. To take advantage of this, change [the remote URL](/get-started/getting-started-with-git/about-remote-repositories) you're using:
30+
Often, the simplest solution is to simply avoid SSH entirely. Most firewalls and proxies allow HTTPS traffic without issue. To take advantage of this, change [the remote URL](/get-started/git-basics/about-remote-repositories) you're using:
3131

3232
```shell
3333
$ git clone https://{% data variables.product.product_url %}/USERNAME/REPO-NAME.git

content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $ ssh -T GITHUB-USERNAME@{% data variables.product.product_url %}
5454
> Permission denied (publickey).
5555
```
5656

57-
If your connection failed and you're using a remote URL with your {% data variables.product.github %} username, you can [change the remote URL to use the "git" user](/get-started/getting-started-with-git/managing-remote-repositories).
57+
If your connection failed and you're using a remote URL with your {% data variables.product.github %} username, you can [change the remote URL to use the "git" user](/get-started/git-basics/managing-remote-repositories).
5858

5959
You should verify your connection by typing:
6060

content/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ If you [configured your SSH passphrase with the macOS keychain](/authentication/
3030

3131
{% windows %}
3232

33-
If you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls) so you can use a {% data variables.product.pat_generic %} instead.
33+
If you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/get-started/git-basics/about-remote-repositories#cloning-with-https-urls) so you can use a {% data variables.product.pat_generic %} instead.
3434

3535
{% endwindows %}
3636

3737
{% linux %}
3838

39-
If you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls) so you can use a {% data variables.product.pat_generic %} instead.
39+
If you lose your SSH key passphrase, there's no way to recover it. You'll need to [generate a brand new SSH keypair](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) or [switch to HTTPS cloning](/get-started/git-basics/about-remote-repositories#cloning-with-https-urls) so you can use a {% data variables.product.pat_generic %} instead.
4040

4141
{% endlinux %}

content/contributing/writing-for-github-docs/using-markdown-and-liquid-in-github-docs.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -403,17 +403,17 @@ Because the site is dynamic, it does not build HTML files for each different ver
403403
404404
For example, an article that is available in currently supported versions will have permalink URLs like the following:
405405

406-
* `/en/get-started/getting-started-with-git/set-up-git`
407-
* `/en/enterprise-cloud@latest/get-started/getting-started-with-git/set-up-git`
408-
* `/en/[email protected]/get-started/getting-started-with-git/set-up-git`
409-
* `/en/[email protected]/get-started/getting-started-with-git/set-up-git`
410-
* `/en/[email protected]/get-started/getting-started-with-git/set-up-git`
411-
* `/en/[email protected]/get-started/getting-started-with-git/set-up-git`
412-
* `/en/[email protected]/get-started/getting-started-with-git/set-up-git`
406+
* `/en/get-started/git-basics/set-up-git`
407+
* `/en/enterprise-cloud@latest/get-started/git-basics/set-up-git`
408+
* `/en/[email protected]/get-started/git-basics/set-up-git`
409+
* `/en/[email protected]/get-started/git-basics/set-up-git`
410+
* `/en/[email protected]/get-started/git-basics/set-up-git`
411+
* `/en/[email protected]/get-started/git-basics/set-up-git`
412+
* `/en/[email protected]/get-started/git-basics/set-up-git`
413413

414414
An article that is not available in {% data variables.product.prodname_ghe_server %} will have just one permalink:
415415

416-
* `/en/get-started/getting-started-with-git/set-up-git`
416+
* `/en/get-started/git-basics/set-up-git`
417417

418418
> [!NOTE]
419419
> If you are a content contributor, you don't need to worry about supported versions when adding a link to a document. Following the examples above, if you want to reference an article, you can just use its relative location: `/github/getting-started-with-github/set-up-git`.

content/desktop/adding-and-cloning-repositories/cloning-and-forking-repositories-from-github-desktop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ You can create an alias for a local repository to help differentiate between rep
5656

5757
## Further reading
5858

59-
* [About remote repositories](/get-started/getting-started-with-git/about-remote-repositories)
59+
* [About remote repositories](/get-started/git-basics/about-remote-repositories)

0 commit comments

Comments
 (0)