Skip to content

ExiledEye/GitRepoUpdater

Repository files navigation

GitRepoUpdater PowerShell Module

PSGallery Version PowerShell PSGallery Downloads

A PowerShell module to easily pull updates from multiple Git repositories at once.

Sync-EveryRepo example

Note: if you need a simple script to copy paste and run once in a directory instead take a look at this

Table of Contents

Features

  • Recursively finds all Git repositories in a directory
  • Pulls latest changes with clear visual feedback
  • Provides detailed summary
  • Safe error handling

Requirements

  • Windows PowerShell 5.1 or newer
  • Git installed and in PATH

Installation

  1. Clone this repository or simply download it
  2. Run the installer:
    as administrator to install for all users
    as regular user to install only for current user
git clone https://github.com/ExiledEye/GitRepoUpdater cd GitRepoUpdater && powershell -ExecutionPolicy Bypass -File .\Install-GitRepoUpdater.ps1

Or alternatively simply install it from PowerShell Gallery:

Install-Module -Name GitRepoUpdater

Updating

  1. Pull the repo (ironic, don't you think?)
  2. Run the installer
cd GitRepoUpdater && git pull powershell -ExecutionPolicy Bypass -File .\Install-GitRepoUpdater.ps1

Or alternatively simply update it from PowerShell Gallery:

Update-Module -Name GitRepoUpdater

Uninstalling

  1. Run the uninstaller
  2. Optionally also delete the local repo directory
cd GitRepoUpdater powershell -ExecutionPolicy Bypass -File .\Uninstall-GitRepoUpdater.ps1

Or alternatively simply uninstall it using:

Remove-Module -Name GitRepoUpdater

Usage Example

cd *directory with multiple repos* Sync-EveryRepo #Alias: ser

Support

If you encounter any problems or have suggestions, please open an issue.

License

This project is licensed under the MIT License.
See the LICENSE file for details.

About

A PowerShell module to easily pull updates from multiple Git repositories at once.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published