Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Nov 30, 2024
1 parent a0bf5a7 commit dc67e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/public/Git/Set-GitHubGitConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Set the Git configuration for the GitHub context.
.DESCRIPTION
Sets the Git configuration for the GitHub context. This command sets the user.name, user.email, and url.<host>.insteadOf git configs.
Sets the Git configuration for the GitHub context. This command sets the `user.name`, `user.email`, and `url.<host>.insteadOf` git configs.
.EXAMPLE
Set-GitHubGitConfig
Expand Down Expand Up @@ -45,7 +45,7 @@
if ($PSCmdlet.ShouldProcess("$Name", 'Set Git configuration')) {
git config --global user.name "$username"
git config --global user.email "$id+$username@users.noreply.github.com"
git config --global url."https://oauth2:$token@$hostName".insteadOf https://<host>
git config --global url."https://oauth2:$token@$hostName".insteadOf https://$hostName
Write-Verbose "[$commandName] - End"
}
}

0 comments on commit dc67e8e

Please sign in to comment.