https://github.com/pldmgg/GitEnv
unctions to enhance git experience on Windows.
https://github.com/pldmgg/GitEnv
Last synced: 3 months ago
JSON representation
unctions to enhance git experience on Windows.
- Host: GitHub
- URL: https://github.com/pldmgg/GitEnv
- Owner: pldmgg
- License: mit
- Created: 2018-10-18T12:24:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T18:30:42.000Z (over 6 years ago)
- Last Synced: 2024-08-14T07:06:39.266Z (6 months ago)
- Language: PowerShell
- Homepage:
- Size: 272 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - pldmgg/GitEnv - unctions to enhance git experience on Windows. (PowerShell)
README
[](https://ci.appveyor.com/project/pldmgg/GitEnv/branch/master)
# GitEnv
Functions to enhance git experience on Windows.## Getting Started
```powershell
# One time setup
# Download the repository
# Unblock the zip
# Extract the GitEnv folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)
# Or, with PowerShell 5 or later or PowerShellGet:
Install-Module GitEnv# Import the module.
Import-Module GitEnv # Alternatively, Import-Module# Get commands in the module
Get-Command -Module GitEnv# Get help
Get-Help -Full
Get-Help about_GitEnv
```## Examples
### Scenario 1
```powershell
$GitAuthParams = @{
GitHubUserName = "pldmgg"
GitHubEmail = "[email protected]"
AuthMethod = "https"
PersonalAccessToken = "2345678dsfghjk4567890"
}Configure-GitCmdLine @GitAuthParams
```### Scenario 2
```powershell
$TestGitAuthParams = @{
GitHubUserName = "pldmgg"
AuthMethod = "https"
PersonalAccessToken = "2345678dsfghjk4567890"
}Test-GitAuthentication @TestGitAuthParams
```### Scenario 3
```powershell
$CloneRepoParams = @{
GitRepoParentDirectory = "$HOME\Documents\GitRepos"
GitHubUserName = "pldmgg"
GitHubEmail = "[email protected]"
PersonalAccessToken = "2345678dsfghjk4567890"
CloneAllRepos = $True
}Clone-GitRepo @CloneRepoParams
```## Notes
* PSGallery: https://www.powershellgallery.com/packages/GitEnv