Skip to content

Commit 9393c1f

Browse files
authored
Merge pull request #862 from wolf99/doc-line-length
Unify line length across docs
2 parents f230c46 + d226097 commit 9393c1f

21 files changed

+802
-345
lines changed

.github/ISSUE_TEMPLATE/auth-problem.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ origin https://dev.azure.com/contoso/_git/widgets
4444
* [ ] https://`{org}`@dev.azure.com/`{org}`/...
4545
* [ ] https://`{org}`.visualstudio.com/...
4646

47-
**_[Azure DevOps only]_ If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.**
47+
**_[Azure DevOps only]_ If the account picker shows more than one identity as
48+
you authenticate, check that you selected the same one that has access on the
49+
web.**
4850

4951
* [ ] Not applicable
5052
* [ ] I only see one identity
@@ -58,13 +60,16 @@ I am authenticated and my Git operation completes successfully.
5860

5961
**Actual behavior**
6062

61-
A clear and concise description of what happens. For example: exception is thrown, UI freezes, etc.
63+
A clear and concise description of what happens. For example: exception is
64+
thrown, UI freezes, etc.
6265

6366
**Logs**
6467

65-
Set the environment variables `GCM_TRACE=1` and `GIT_TRACE=1` and re-run your Git command. Review and redact any private information and attach the log.
68+
Set the environment variables `GCM_TRACE=1` and `GIT_TRACE=1` and re-run your
69+
Git command. Review and redact any private information and attach the log.
6670

67-
If you are running inside of Windows Subsystem for Linux (WSL), you must also set an additional environment variable to enable tracing: `WSLENV=$WSLENV:GCM_TRACE`.
71+
If you are running inside of Windows Subsystem for Linux (WSL), you must also
72+
set an additional environment variable to enable tracing: `WSLENV=$WSLENV:GCM_TRACE`.
6873
For example:
6974

7075
```shell

.github/ISSUE_TEMPLATE/experimental.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ origin https://dev.azure.com/contoso/_git/widgets
4444
* [ ] https://`{org}`@dev.azure.com/`{org}`/...
4545
* [ ] https://`{org}`.visualstudio.com/...
4646

47-
**_[Azure DevOps only]_ If the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.**
47+
**_[Azure DevOps only]_ If the account picker shows more than one identity as
48+
you authenticate, check that you selected the same one that has access on the
49+
web.**
4850

4951
* [ ] Not applicable
5052
* [ ] I only see one identity
@@ -58,13 +60,16 @@ I am authenticated and my Git operation completes successfully.
5860

5961
**Actual behavior**
6062

61-
A clear and concise description of what happens. For example: exception is thrown, UI freezes, etc.
63+
A clear and concise description of what happens. For example: exception is
64+
thrown, UI freezes, etc.
6265

6366
**Logs**
6467

65-
Set the environment variables `GCM_TRACE=1` and `GIT_TRACE=1` and re-run your Git command. Review and redact any private information and attach the log.
68+
Set the environment variables `GCM_TRACE=1` and `GIT_TRACE=1` and re-run your
69+
Git command. Review and redact any private information and attach the log.
6670

67-
If you are running inside of Windows Subsystem for Linux (WSL), you must also set an additional environment variable to enable tracing: `WSLENV=$WSLENV:GCM_TRACE`.
71+
If you are running inside of Windows Subsystem for Linux (WSL), you must also
72+
set an additional environment variable to enable tracing: `WSLENV=$WSLENV:GCM_TRACE`.
6873
For example:
6974

7075
```shell

.markdownlint.jsonc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// For information on writing markdownlint configuration see:
22
// https://github.com/DavidAnson/markdownlint/blob/main/README.md#optionsconfig
33
{
4-
"MD013": false, // Line length and line breaking convention not yet standardised across docs
4+
"MD013": {
5+
"line_length": 80,
6+
"code_blocks": false,
7+
"headings": false,
8+
"tables": false
9+
},
510
"MD024": false // The format for some files require repeated headings, e.g. "Example"
611
}

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ members of the project's leadership.
6767

6868
## Attribution
6969

70-
This Code of Conduct is adapted from the [Contributor Covenant][cc-homepage], version 1.4,
71-
available at [Contributor Covenant Code of Conduct][cc-coc].
70+
This Code of Conduct is adapted from the [Contributor Covenant][cc-homepage],
71+
version 1.4, available at [Contributor Covenant Code of Conduct][cc-coc].
7272

7373
For answers to common questions about this code of conduct, see the
7474
[Contributor Covenant FAQ][cc-faq]

CONTRIBUTING.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# Contributing
22

3-
Hi there! We're thrilled that you'd like to contribute to GCM :tada:. Your help is essential for keeping it great.
3+
Hi there! We're thrilled that you'd like to contribute to GCM :tada:. Your help
4+
is essential for keeping it great.
45

5-
Contributions to GCM are [released][contribute-under-repo-license] to the public under the [project's open source license][license].
6+
Contributions to GCM are [released][contribute-under-repo-license] to the public
7+
under the [project's open source license][license].
68

7-
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
9+
Please note that this project is released with a
10+
[Contributor Code of Conduct][code-of-conduct]. By participating in this project
11+
you agree to abide by its terms.
812

913
## Start with an issue
1014

1115
1. Open an [issue][issue] to discuss the change you want to see.
12-
This helps us coordinate and reduce duplication.
16+
This helps us coordinate and reduce duplication.
1317
1. Once we've had some discussion, you're ready to code!
1418

1519
## Submitting a pull request
@@ -19,20 +23,25 @@ This helps us coordinate and reduce duplication.
1923
1. Make sure the tests pass on your machine: `dotnet test`
2024
1. Create a new branch: `git switch -c my-branch-name`
2125
1. Make your change, add tests, and make sure the tests still pass
22-
1. For UI updates, test your changes by executing a `dotnet run` in applicable UI-related project directories:
26+
1. For UI updates, test your changes by executing a `dotnet run` in applicable
27+
UI-related project directories:
2328
- `Atlassian.Bitbucket.UI.Avalonia`
2429
- `GitHub.UI.Avalonia`
2530
- `Atlassian.Bitbucket.UI.Windows`
2631
- `GitHub.UI.Windows`
2732
1. Organize your changes into one or more [logical, descriptive commits][commits].
2833
1. Push to your fork and [submit a pull request][pr]
29-
1. Pat your self on the back and wait for your pull request to be reviewed and merged.
34+
1. Pat your self on the back and wait for your pull request to be reviewed and
35+
merged.
3036

31-
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
37+
Here are a few things you can do that will increase the likelihood of your pull
38+
request being accepted:
3239

3340
- Match existing code style.
3441
- Write tests.
35-
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
42+
- Keep your change as focused as possible. If there are multiple changes you
43+
would like to make that are not dependent upon each other, consider
44+
submitting them as separate pull requests.
3645

3746
## Resources
3847

README.md

Lines changed: 60 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@
44

55
---
66

7-
[Git Credential Manager][gcm] (GCM) is a secure Git credential helper built on [.NET][dotnet] that runs on Windows, macOS, and Linux.
7+
[Git Credential Manager][gcm] (GCM) is a secure Git credential helper built on
8+
[.NET][dotnet] that runs on Windows, macOS, and Linux.
89

9-
Compared to Git's [built-in credential helpers][git-tools-credential-storage] (Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring/libsecret) which provides single-factor authentication support working on any HTTP-enabled Git repository, GCM provides multi-factor authentication support for [Azure DevOps][azure-devops], Azure DevOps Server (formerly Team Foundation Server), GitHub, Bitbucket, and GitLab.
10+
Compared to Git's [built-in credential helpers][git-tools-credential-storage]
11+
(Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring/libsecret) which
12+
provides single-factor authentication support working on any HTTP-enabled Git
13+
repository, GCM provides multi-factor authentication support for
14+
[Azure DevOps][azure-devops], Azure DevOps Server (formerly Team Foundation
15+
Server), GitHub, Bitbucket, and GitLab.
1016

11-
Git Credential Manager (GCM) replaces the .NET Framework-based [Git Credential Manager for Windows][gcm-for-windows] (GCM), and the Java-based [Git Credential Manager for Mac and Linux][gcm-for-mac-and-linux] (Java GCM), providing a consistent authentication experience across all platforms.
17+
Git Credential Manager (GCM) replaces the .NET Framework-based
18+
[Git Credential Manager for Windows][gcm-for-windows] (GCM), and the Java-based
19+
[Git Credential Manager for Mac and Linux][gcm-for-mac-and-linux] (Java GCM),
20+
providing a consistent authentication experience across all platforms.
1221

1322
## Current status
1423

15-
Git Credential Manager is currently available for Windows, macOS, and Linux\*. GCM only works with HTTP(S) remotes; you can still use Git with SSH:
24+
Git Credential Manager is currently available for Windows, macOS, and Linux\*.
25+
GCM only works with HTTP(S) remotes; you can still use Git with SSH:
1626

1727
- [Azure DevOps SSH][azure-devops-ssh]
1828
- [GitHub SSH][github-ssh]
@@ -34,7 +44,10 @@ Proxy support|✓|✓|✓
3444
`arm64` support|best effort|✓|best effort, no packages
3545
`armhf` support|_N/A_|_N/A_|best effort, no packages
3646

37-
(\*) GCM guarantees support for the below Linux distributions. GCM maintainers also monitor and evaluate issues opened against other distributions to determine community interest/engagement and whether an emerging platform should become fully-supported.
47+
(\*) GCM guarantees support for the below Linux distributions. GCM maintainers
48+
also monitor and evaluate issues opened against other distributions to determine
49+
community interest/engagement and whether an emerging platform should become
50+
fully-supported.
3851

3952
- Debian/Ubuntu/Linux Mint
4053
- Fedora/CentOS/RHEL
@@ -44,7 +57,8 @@ Proxy support|✓|✓|✓
4457

4558
### macOS Homebrew
4659

47-
The preferred installation mechanism is using Homebrew; we offer a Cask in our custom Tap.
60+
The preferred installation mechanism is using Homebrew; we offer a Cask in our
61+
custom Tap.
4862

4963
To install, run the following:
5064

@@ -61,7 +75,9 @@ brew upgrade git-credential-manager-core
6175

6276
#### Git Credential Manager for Mac and Linux (Java-based GCM)
6377

64-
If you have an existing installation of the 'Java GCM' on macOS and you have installed this using Homebrew, this installation will be unlinked (`brew unlink git-credential-manager`) when GCM is installed.
78+
If you have an existing installation of the 'Java GCM' on macOS and you have
79+
installed this using Homebrew, this installation will be unlinked
80+
(`brew unlink git-credential-manager`) when GCM is installed.
6581

6682
#### Uninstall
6783

@@ -75,7 +91,8 @@ brew uninstall --cask git-credential-manager-core
7591

7692
### macOS Package
7793

78-
We also provide a [.pkg installer][latest-release] with each release. To install, double-click the installation package and follow the instructions presented.
94+
We also provide a [.pkg installer][latest-release] with each release. To install,
95+
double-click the installation package and follow the instructions presented.
7996

8097
#### Uninstall
8198

@@ -159,43 +176,55 @@ To uninstall:
159176

160177
[Follow these instructions][linux-uninstall] for your distribution.
161178

162-
**Note:** all Linux distributions [require additional configuration][gcm-credstores] to use GCM.
179+
**Note:** all Linux distributions
180+
[require additional configuration][gcm-credstores] to use GCM.
163181

164182
---
165183

166184
### Windows
167185

168-
GCM is included with [Git for Windows][git-for-windows], and the latest version is included in each new Git for Windows release. This is the preferred way to install GCM on Windows. During installation you will be asked to select a credential helper, with GCM being set as the default.
186+
GCM is included with [Git for Windows][git-for-windows], and the latest version
187+
is included in each new Git for Windows release. This is the preferred way to
188+
install GCM on Windows. During installation you will be asked to select a
189+
credential helper, with GCM being set as the default.
169190

170191
![image][git-for-windows-screenshot]
171192

172193
#### Standalone installation
173194

174-
You can also download the [latest installer][latest-release] for Windows to install GCM standalone.
195+
You can also download the [latest installer][latest-release] for Windows to
196+
install GCM standalone.
175197

176198
**:warning: Important :warning:**
177199

178-
Installing GCM as a standalone package on Windows will forcibly override the version of GCM that is bundled with Git for Windows, **even if the version bundled with Git for Windows is a later version**.
200+
Installing GCM as a standalone package on Windows will forcibly override the
201+
version of GCM that is bundled with Git for Windows, **even if the version
202+
bundled with Git for Windows is a later version**.
179203

180204
There are two flavors of standalone installation on Windows:
181205

182206
- User (preferred) (`gcmuser-win*`):
183207

184-
Does not require administrator rights. Will install only for the current user and updates only the current user's Git configuration.
208+
Does not require administrator rights. Will install only for the current user
209+
and updates only the current user's Git configuration.
185210

186211
- System (`gcm-win*`):
187212

188-
Requires administrator rights. Will install for all users on the system and update the system-wide Git configuration.
213+
Requires administrator rights. Will install for all users on the system and
214+
update the system-wide Git configuration.
189215

190-
To install, double-click the desired installation package and follow the instructions presented.
216+
To install, double-click the desired installation package and follow the
217+
instructions presented.
191218

192219
#### Uninstall (Windows 10)
193220

194-
To uninstall, open the Settings app and navigate to the Apps section. Select "Git Credential Manager" and click "Uninstall".
221+
To uninstall, open the Settings app and navigate to the Apps section. Select
222+
"Git Credential Manager" and click "Uninstall".
195223

196224
#### Uninstall (Windows 7-8.1)
197225

198-
To uninstall, open Control Panel and navigate to the Programs and Features screen. Select "Git Credential Manager" and click "Remove".
226+
To uninstall, open Control Panel and navigate to the Programs and Features
227+
screen. Select "Git Credential Manager" and click "Remove".
199228

200229
#### Windows Subsystem for Linux (WSL)
201230

@@ -218,16 +247,21 @@ Git that are not compatible.
218247
- Git 2.26.2
219248

220249
This version of Git introduced a breaking change with parsing credential
221-
configuration that GCM relies on. This issue was fixed in commit [`12294990`][gcm-commit-12294990]
222-
of the Git project, and released in Git 2.27.0.
250+
configuration that GCM relies on. This issue was fixed in commit
251+
[`12294990`][gcm-commit-12294990] of the Git project, and released in Git
252+
2.27.0.
223253

224254
## How to use
225255

226-
Once it's installed and configured, Git Credential Manager is called implicitly by Git.
227-
You don't have to do anything special, and GCM isn't intended to be called directly by the user.
228-
For example, when pushing (`git push`) to [Azure DevOps][azure-devops], [Bitbucket][bitbucket], or [GitHub][github], a window will automatically open and walk you through the sign-in process.
229-
(This process will look slightly different for each Git host, and even in some cases, whether you've connected to an on-premises or cloud-hosted Git host.)
230-
Later Git commands in the same repository will re-use existing credentials or tokens that GCM has stored for as long as they're valid.
256+
Once it's installed and configured, Git Credential Manager is called implicitly
257+
by Git. You don't have to do anything special, and GCM isn't intended to be
258+
called directly by the user. For example, when pushing (`git push`) to
259+
[Azure DevOps][azure-devops], [Bitbucket][bitbucket], or [GitHub][github], a
260+
window will automatically open and walk you through the sign-in process. (This
261+
process will look slightly different for each Git host, and even in some cases,
262+
whether you've connected to an on-premises or cloud-hosted Git host.) Later Git
263+
commands in the same repository will re-use existing credentials or tokens that
264+
GCM has stored for as long as they're valid.
231265

232266
Read full command line usage [here][gcm-usage].
233267

@@ -264,7 +298,8 @@ This project follows [GitHub's Open Source Code of Conduct][gcm-coc].
264298
## License
265299

266300
We're [MIT][gcm-license] licensed.
267-
When using GitHub logos, please be sure to follow the [GitHub logo guidelines][github-logos].
301+
When using GitHub logos, please be sure to follow the
302+
[GitHub logo guidelines][github-logos].
268303

269304
[azure-devops]: https://dev.azure.com/
270305
[azure-devops-ssh]: https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops

SECURITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Security
22

3-
If you discover a security issue in this repo, please submit it through the [GitHub Security Bug Bounty][hackerone-github]
3+
If you discover a security issue in this repo, please submit it through the
4+
[GitHub Security Bug Bounty][hackerone-github]
45

56
Thanks for helping make GitHub products safe for everyone.
67

docs/autodetect.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ In order to detect which host provider to use for a self-hosted instance, each
1818
provider can provide some heuristic matching of the hostname. For example any
1919
hostname that begins "github.*" will be matched to the GitHub host provider.
2020

21-
If a heuristic matches incorrectly, you can always [explicitly configure][explicit-config]
22-
GCM to use a particular provider.
21+
If a heuristic matches incorrectly, you can always
22+
[explicitly configure][explicit-config] GCM to use a particular provider.
2323

2424
## Remote URL probing
2525

@@ -28,8 +28,9 @@ URL and inspect HTTP response headers to try and detect a self-hosted instance.
2828

2929
This network call is only performed if neither an exact nor fuzzy match by
3030
hostname can be made. Only one HTTP `HEAD` call is made per credential request
31-
received by Git. To avoid this network call, please [explicitly configure][explicit-config]
32-
the host provider for your self-hosted instance.
31+
received by Git. To avoid this network call, please
32+
[explicitly configure][explicit-config] the host provider for your self-hosted
33+
instance.
3334

3435
After a successful detection of the host provider, GCM will automatically set
3536
the [`credential.provider`][credential-provider] configuration entry
@@ -39,8 +40,8 @@ future requests.
3940
### Timeout
4041

4142
You can control how long GCM will wait for a response to the remote network call
42-
by setting the [`GCM_AUTODETECT_TIMEOUT`][gcm-autodetect-timeout]
43-
environment variable, or the [`credential.autoDetectTimeout`][credential-autoDetectTimeout]
43+
by setting the [`GCM_AUTODETECT_TIMEOUT`][gcm-autodetect-timeout] environment
44+
variable, or the [`credential.autoDetectTimeout`][credential-autoDetectTimeout]
4445
Git configuration setting to the maximum number of milliseconds to wait.
4546

4647
The default value is 2000 milliseconds (2 seconds). You can prevent the network
@@ -52,9 +53,9 @@ If the auto-detection mechanism fails to select the correct host provider, or
5253
if the remote probing network call is causing performance issues, you can
5354
configure GCM to always use a particular host provider, for a given remote URL.
5455

55-
You can either use the the [`GCM_PROVIDER`][gcm-provider]
56-
environment variable, or the [`credential.provider`][credential-provider]
57-
Git configuration setting for this purpose.
56+
You can either use the the [`GCM_PROVIDER`][gcm-provider] environment variable,
57+
or the [`credential.provider`][credential-provider] Git configuration setting
58+
for this purpose.
5859

5960
For example to tell GCM to always use the GitHub host provider for the
6061
"ghe.example.com" hostname, you can run the following command:

0 commit comments

Comments
 (0)