Update-GitRepository
now supports checking out branches that exist at the remote origin, but don't yet exist locally.
Compare-GitTree
now accepts either a path to the repository with theRepositoryRoot
parameter or a repository object with theRepositoryObject
parameter.
- Added functionality to
Get-GitCommit
for getting a list of commits between two specified commits.
- Added:
Compare-GitTree
function for getting a[LibGit2Sharp.TreeChanges]
object representing changes to the repository file tree between two commits.
- Added:
Send-GitCommit
function for pushing local commits to upstream remote repositories.
- Fixed:
Copy-GitRepository
intermittently fails when using SSH. - Fixed:
Copy-GitRepository
takes an order of magnitude longer than normal Git because it updates the clone's progress too frequently. It now only updates progress every 1/10th of a second, which has minimal impact on clone speed.
- Fixed:
Get-GitTag
leaked memory and didn't clean up after itself properly.
- Added
Get-GitCommit
function for getting commits. - Added
Test-GitOutgoingCommit
function for checking if there are outgoing changes. - Added
Test-GitUncommmittedChange
function for checking if there are any uncommitted changes in a repository. - Added
Receive-GitCommit
function for pulling/fetching changes into a repository from a remote repository. - Added
Test-GitRemoteUri
function for testing if a URI points to a Git repository. - Added
Test-GitIncomingCommit
function for testing if there are incoming/unpulled/unfetched commits. - Added
Get-GitBranch
function for getting the branches in a repository. - Added
New-GitBranch
function for creating a new branch in a repository. - Added
Test-GitBranch
function for testing if a branch exists in a repository. - Added
Get-GitTag
function for getting the tags in a repository. - Added
New-GitTag
function for creating tags in a repository. - Added
Test-GitTag
function for testing if a tag exists in a repository. - Added
Update-GitRepository
for updating a repository to a commit, branch, tag, etc, i.e. for checking out a specific commit.
- Added
Set-GitConfiguration
for setting Git configuration variables. Implements thegit config
command. - Added SSH support. You must have an
ssh.exe
program in your path.
- Fixed: NuGet, Chocolatey, and PowerShell Gallery packages are missing assemblies.
- Created
Add-GitItem
function for promoting new, untracked, and modified files/directories to the Git staging area so they can be committed. Implements thegit add
command. - Created
Get-GitRepository
function for getting an object representing a repository. - Created
Save-GitCommit
function for commiting changes to a repository. Implements thegit commit
command. - Created
Find-GitRepository
function for searching a directory and its parents (i.e. up it tree) for a Git repository. - Created
New-GitRepository
function for creating new Git repositories. - Created
Get-GitRepositoryStatus
function for getting the state of a repository's working directory and any items staged for the next commit.
- Created
Copy-GitRepository
function for cloning Git repositories.