1.0.0 β’ Published 7 months ago
@irenleinades/gitupdater v1.0.0
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/gitupdaterManual Installation
- Clone the repository:
git clone https://github.com/irenleinades/gitupdater.git
cd gitupdater- Install dependencies:
npm install- Link the package:
npm linkUsage
- Navigate to a directory containing Git repositories:
cd /path/to/your/projects- Run the updater:
gitupdater- 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:
- Run PowerShell as Administrator
- Execute:
Set-ExecutionPolicy RemoteSigned - 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