Consolidate product name variables for base URL (#50519) · github/docs@52b841b · GitHub
Skip to content

Commit 52b841b

Browse files
authored
Consolidate product name variables for base URL (#50519)
1 parent ffa3daf commit 52b841b

32 files changed

Lines changed: 114 additions & 121 deletions

File tree

‎content/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications.md‎

Lines changed: 1 addition & 1 deletion

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ If you have any local copies of personal repositories you have created or forked
6363
$ cd YOUR-REPOSITORY
6464
# Change directories to the initialized Git repository
6565
$ git remote -v
66-
origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-REPOSITORY.git (fetch)
67-
origin https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-REPOSITORY.git (push)
66+
origin https://{% data variables.product.product_url %}/YOUR-USERNAME/YOUR-REPOSITORY.git (fetch)
67+
origin https://{% data variables.product.product_url %}/YOUR-USERNAME/YOUR-REPOSITORY.git (push)
6868
```
6969

70-
Your user name is what immediately follows the `https://{% data variables.command_line.backticks %}/`.
70+
Your user name is what immediately follows the `https://{% data variables.product.product_url %}/`.
7171

7272
{% ifversion fpt or ghec %}
7373

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ If the new owner of your old username creates a repository with the same name as
7676

7777
## Links to your previous profile page
7878

79-
After changing your username, links to your previous profile page, such as `https://{% data variables.command_line.backticks %}/previoususername`, will return a 404 error. We recommend updating any links to your account on {% data variables.location.product_location %} from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}.
79+
After changing your username, links to your previous profile page, such as `https://{% data variables.product.product_url %}/previoususername`, will return a 404 error. We recommend updating any links to your account on {% data variables.location.product_location %} from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}.
8080

8181
## Your Git commits
8282

‎content/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ You'll need to authenticate this action using your password, which is the SSH ke
2525
1. Enter the following:
2626

2727
```shell replacedomain copy
28-
ssh -T git@{% data variables.command_line.codeblock %}
28+
ssh -T git@{% data variables.product.product_url %}
2929
# Attempts to ssh to {% data variables.product.product_name %}
3030
```
3131

3232
You may see a warning like this:
3333

3434
```shell replacedomain
35-
> The authenticity of host '{% data variables.command_line.codeblock %} (IP ADDRESS)' can't be established.
35+
> The authenticity of host '{% data variables.product.product_url %} (IP ADDRESS)' can't be established.
3636
> ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
3737
> Are you sure you want to continue connecting (yes/no)?
3838
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Once you have a {% data variables.product.pat_generic %}, you can enter it inste
166166
For example, to clone a repository on the command line you would enter the following `git clone` command. You would then be prompted to enter your username and password. When prompted for your password, enter your {% data variables.product.pat_generic %} instead of a password.
167167

168168
```shell
169-
$ git clone https://{% data variables.command_line.codeblock %}/USERNAME/REPO.git
169+
$ git clone https://{% data variables.product.product_url %}/USERNAME/REPO.git
170170
Username: YOUR-USERNAME
171171
Password: YOUR-PERSONAL-ACCESS-TOKEN
172172
```

‎content/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To illustrate how `git filter-repo` works, we'll show you how to remove your fil
9595
1. If you don't already have a local copy of your repository with sensitive data in its history, [clone the repository](/repositories/creating-and-managing-repositories/cloning-a-repository) to your local computer.
9696

9797
```shell
98-
$ git clone https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-REPOSITORY
98+
$ git clone https://{% data variables.product.product_url %}/YOUR-USERNAME/YOUR-REPOSITORY
9999
> Initialized empty Git repository in /Users/YOUR-FILE-PATH/YOUR-REPOSITORY/.git/
100100
> remote: Counting objects: 1301, done.
101101
> remote: Compressing objects: 100% (769/769), done.
@@ -159,7 +159,7 @@ To illustrate how `git filter-repo` works, we'll show you how to remove your fil
159159
> Compressing objects: 100% (677/677), done.
160160
> Writing objects: 100% (1058/1058), 148.85 KiB, done.
161161
> Total 1058 (delta 590), reused 602 (delta 378)
162-
> To https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-REPOSITORY.git
162+
> To https://{% data variables.product.product_url %}/YOUR-USERNAME/YOUR-REPOSITORY.git
163163
> + 48dc599...051452f main -> main (forced update)
164164
```
165165
@@ -172,7 +172,7 @@ To illustrate how `git filter-repo` works, we'll show you how to remove your fil
172172
> Compressing objects: 100% (166/166), done.
173173
> Writing objects: 100% (321/321), 331.74 KiB | 0 bytes/s, done.
174174
> Total 321 (delta 124), reused 269 (delta 108)
175-
> To https://{% data variables.command_line.codeblock %}/YOUR-USERNAME/YOUR-REPOSITORY.git
175+
> To https://{% data variables.product.product_url %}/YOUR-USERNAME/YOUR-REPOSITORY.git
176176
> + 48dc599...051452f main -> main (forced update)
177177
```
178178

‎content/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ shortTitle: Agent failure to sign
1717
When trying to SSH into {% data variables.location.product_location %} on a Linux computer, you may see the following message in your terminal:
1818

1919
```shell
20-
$ ssh -vT git@{% data variables.command_line.codeblock %}
20+
$ ssh -vT git@{% data variables.product.product_url %}
2121
> ...
2222
> Agent admitted failure to sign using the key.
2323
> debug1: No more authentication methods to try.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ topics:
1515
When running remote Git commands or SSH, your connection might time out:
1616

1717
```shell
18-
$ ssh -vT git@{% data variables.command_line.codeblock %}
18+
$ ssh -vT git@{% data variables.product.product_url %}
1919
> OpenSSH_8.1p1, LibreSSL 2.7.3
20-
> debug1: Connecting to {% data variables.command_line.codeblock %} [207.97.227.239] port 22.
20+
> debug1: Connecting to {% data variables.product.product_url %} [207.97.227.239] port 22.
2121
> debug1: connect to address 207.97.227.239 port 22: Connection timed out
22-
> ssh: connect to host {% data variables.command_line.codeblock %} port 22: Connection timed out
23-
> ssh: connect to host {% data variables.command_line.codeblock %} port 22: Bad file number
22+
> ssh: connect to host {% data variables.product.product_url %} port 22: Connection timed out
23+
> ssh: connect to host {% data variables.product.product_url %} port 22: Bad file number
2424
```
2525

2626
## Solving the issue
@@ -30,7 +30,7 @@ $ ssh -vT git@{% data variables.command_line.codeblock %}
3030
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:
3131

3232
```shell
33-
$ git clone https://{% data variables.command_line.codeblock %}/USERNAME/REPO-NAME.git
33+
$ git clone https://{% data variables.product.product_url %}/USERNAME/REPO-NAME.git
3434
> Cloning into 'reponame'...
3535
> remote: Counting objects: 84, done.
3636
> remote: Compressing objects: 100% (45/45), done.

‎content/authentication/troubleshooting-ssh/error-key-already-in-use.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ topics:
1717
To determine where the key has already been used, open a terminal and type the `ssh` command. Use the `-i` flag to provide the path to the key you want to check:
1818

1919
```shell
20-
$ ssh -T -ai ~/.ssh/id_rsa git@{% data variables.command_line.codeblock %}
20+
$ ssh -T -ai ~/.ssh/id_rsa git@{% data variables.product.product_url %}
2121
# Connect to {% data variables.location.product_location %} using a specific ssh key
2222
> Hi USERNAME! You've successfully authenticated, but GitHub does not
2323
> provide shell access.
@@ -28,7 +28,7 @@ The _username_ in the response is the account on {% data variables.location.prod
2828
To force SSH to use only the key provided on the command line, use `-o` to add the `IdentitiesOnly=yes` option:
2929
3030
```shell
31-
ssh -v -o "IdentitiesOnly=yes" -i ~/.ssh/id_rsa git@{% data variables.command_line.codeblock %}
31+
ssh -v -o "IdentitiesOnly=yes" -i ~/.ssh/id_rsa git@{% data variables.product.product_url %}
3232
```
3333
3434
## Fixing the issue

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

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)