GitAutomation

0.11.0

   GitAutomation is a PowerShell module for working with Git repositories. You can use it to create, clone, query, push to, pull from, and commit to Git repositories.
   
   This module uses [LibGit2Sharp](https://github.com/libgit2/libgit2sharp), the .NET wrapper of [libgit2](https://libgit2.github.com/), "a portable, pure C implementation of... Git", which allo
   GitAutomation is a PowerShell module for working with Git repositories. You can use it to create, clone, query, push to, pull from, and commit to Git repositories.
   
   This module uses [LibGit2Sharp](https://github.com/libgit2/libgit2sharp), the .NET wrapper of [libgit2](https://libgit2.github.com/), "a portable, pure C implementation of... Git", which allows you to call Git via API instead using the Git command line interface.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name GitAutomation -RequiredVersion 0.11.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

WebMD Health Services

Copyright

Copyright 2016 - 2018 WebMD Health Services

Owners

Tags

git vcs rcs automation github gitlab libgit2

Functions

Add-GitItem Compare-GitTree Copy-GitRepository Find-GitRepository Get-GitBranch Get-GitCommit Get-GitRepository Get-GitRepositoryStatus Get-GitTag Merge-GitCommit New-GitBranch New-GitRepository New-GitSignature New-GitTag Receive-GitCommit Remove-GitItem Save-GitCommit Send-GitBranch Send-GitCommit Send-GitObject Set-GitConfiguration Sync-GitBranch Test-GitBranch Test-GitCommit Test-GitRemoteUri Test-GitTag Test-GitUncommittedChange Update-GitRepository

Dependencies

This module has no dependencies.

Release Notes

***This release contains breaking changes.*** The *Upgrade Instructions* section below explains what you should do when upgrading.

## Changes

* ***Breaking Change***: Module renamed to `GitAutomation`. The LibGit2 folks don't want us to use the LibGit2 name.
* Added `Force` switch to `Update-GitRepository` to overwrite any uncomitted changes when checking out/updating to a specific revision.
* ***Breaking Change***: Removed `Test-GitIncomingCommit` function. It actually downloaded changes from the remote repository to do its test. This function only exists because we came from Mercurial, which doesn't do any kind of automated merging. Because of this, it is normal to have to test/check for incoming changes when automating. Git does automatic mergeing so this kind of check isn't needed.
* ***Breaking Change***: Removed `Test-GitOutgoingCommit` function.  This function only exists because we came from Mercurial, which doesn't do any kind of automated merging. Because of this, it is normal to have to test/check for outgoing changes. With Git, it just handles no outgoing/upstream changes to push, so this function isn't necessary.
* Added a `Sync-GitBranch` function for pulling (i.e. downloading) and merging a remote branch into its local branch. This function implements the `git pull` command.
* ***Breaking Change***: `Receive-GitCommit` no longer merges changes into branches. It only downloads new commits into a repository. Use the new `Sync-GitBranch` to pull and merge changes from a remote branch into your current branch.
* ***Breaking Change***: Removed the `Fetch` switch from `Receive-GitCommit`; the function now only fetches so the switch was redundant.s
* Added `Send-GitBranch` function for pushing a branch to a remote repository, merging in any new changes, if possible.
* ***Breaking Change***: Renamed `Save-GitChange` to `Save-GitCommit` for better discoverability and consistency.

## Upgrade Instructions

* The namespace for compiled objects is now `Git.Automation`. Replace references in your code to `LibGit2.Automation` with `Git.Automation`.
* Remove any usages of the `Test-GitIncomingCommit` or `Test-GitOutgoingCommit` functions.
* Replace any usages of `Receive-GitCommit` that don't have the `Fetch` parameter with `Sync-GitBranch`.
* Remove usages of the `Fetch` switch when calling `Receive-GitCommit`.
* Replace all usages of `Save-GitChange` with `Save-GitCommit`.

Version History

Version Downloads Last updated
0.14.0 7,190 9/30/2019
0.14.0-rc199 6 9/30/2019
0.13.0 389 4/9/2019
0.12.0 347 10/30/2018
0.11.0 (current version) 104 4/17/2018