1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Update all files to use {% data %} (#15253)

* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
This commit is contained in:
Jason Etcovitch
2020-09-29 16:01:04 -04:00
committed by GitHub
parent aa5a62d49d
commit caaee7a124
14816 changed files with 100317 additions and 100247 deletions

View File

@@ -1,6 +1,6 @@
---
title: Setting your username in Git
intro: 'Git uses a username to associate commits with an identity. The Git username is not the same as your {{ site.data.variables.product.product_name }} username.'
intro: 'Git uses a username to associate commits with an identity. The Git username is not the same as your {% data variables.product.product_name %} username.'
redirect_from:
- /articles/setting-your-username-in-git
versions:
@@ -8,20 +8,20 @@ versions:
enterprise-server: '*'
---
You can change the name that is associated with your Git commits using the `git config` command. The new name you set will be visible in any future commits you push to {{ site.data.variables.product.product_name }} from the command line. If you'd like to keep your real name private, you can use any text as your Git username.
You can change the name that is associated with your Git commits using the `git config` command. The new name you set will be visible in any future commits you push to {% data variables.product.product_name %} from the command line. If you'd like to keep your real name private, you can use any text as your Git username.
Changing the name associated with your Git commits using `git config` will only affect future commits and will not change the name used for past commits.
### Setting your Git username for *every* repository on your computer
{{ site.data.reusables.command_line.open_the_multi_os_terminal }}
{% data reusables.command_line.open_the_multi_os_terminal %}
2. {{ site.data.reusables.user_settings.set_your_git_username }}
2. {% data reusables.user_settings.set_your_git_username %}
```shell
$ git config --global user.name "<em>Mona Lisa</em>"
```
3. {{ site.data.reusables.user_settings.confirm_git_username_correct }}
3. {% data reusables.user_settings.confirm_git_username_correct %}
```shell
$ git config --global user.name
> Mona Lisa
@@ -29,16 +29,16 @@ Changing the name associated with your Git commits using `git config` will only
### Setting your Git username for a single repository
{{ site.data.reusables.command_line.open_the_multi_os_terminal }}
{% data reusables.command_line.open_the_multi_os_terminal %}
2. Change the current working directory to the local repository where you want to configure the name that is associated with your Git commits.
3. {{ site.data.reusables.user_settings.set_your_git_username }}
3. {% data reusables.user_settings.set_your_git_username %}
```shell
$ git config user.name "<em>Mona Lisa</em>"
```
3. {{ site.data.reusables.user_settings.confirm_git_username_correct }}
3. {% data reusables.user_settings.confirm_git_username_correct %}
```shell
$ git config user.name
> Mona Lisa