1.0.0 β€’ Published 7 months ago

@irenleinades/gitupdater v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

GitUpdater

A command-line tool to update multiple Git repositories at once. GitUpdater finds all Git repositories in a directory and its subdirectories, then updates them using your credentials.

Features

  • πŸ” Automatically finds all Git repositories in a directory
  • πŸ” Secure credential handling
  • 🌐 Works on Windows, Linux, and macOS
  • πŸ”„ Updates all repositories with a single command
  • πŸ›‘οΈ Cleans up credentials after use

Installation

Using npm (Recommended)

npm install -g @irenleinades/gitupdater

Manual Installation

  1. Clone the repository:
git clone https://github.com/irenleinades/gitupdater.git
cd gitupdater
  1. Install dependencies:
npm install
  1. Link the package:
npm link

Usage

  1. Navigate to a directory containing Git repositories:
cd /path/to/your/projects
  1. Run the updater:
gitupdater
  1. Enter your Git credentials when prompted:
    • Username
    • Personal Access Token (PAT)

The tool will:

  • Find all Git repositories in the current directory and subdirectories
  • Update each repository using your credentials
  • Show success/failure status for each repository
  • Clean up credentials after use

Windows Notes

If you encounter a PowerShell execution policy error, you can:

  1. Run PowerShell as Administrator
  2. Execute: Set-ExecutionPolicy RemoteSigned
  3. Or run the tool using: node $(which gitupdater)

Requirements

  • Node.js (v14 or higher)
  • Git
  • npm (for installation)

Security

  • Credentials are only stored in memory during execution
  • Temporary credential files are automatically cleaned up
  • No credentials are stored permanently
  • Uses secure password input (masked)

License

MIT License - See LICENSE file for details

Author

JosΓ© Γ‘eri

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1.0.0

7 months ago