ghpm is a utility that allows you to manage all your GitHub projects by allowing batch operations.
You can clone all of your or any other userβs repos at once.
You can use it to push, pull and do any other operation on all your projects at once.
I have a lot of repos on my GitHub and maintaining them was becoming a pain, also this makes moving my work to a new machine really smooth.
Before you begin, ensure you have met the following requirements:
bash
gh
, the GitHub cliTo install ghpm, follow these steps:
git clone https://github.com/2kabhishek/ghpm.git
cd ghpm
# Setup symlink make sure target directory is added to PATH
ln -sfnv $PWD/ghpm.sh ~/.local//bin/ghpm
After symlinking, you can run ghpm
in your GitHub repos parent directory, or you can pass it in as an argument
ghpm
# or
ghpm ~/Projects/GitHub
This will open up the self guided menu with a list of operations you can perform.
You can use option 3 to run any command in all your GitHub repos, very useful for push, pull and similar commands.
ghpm was built using bash
Figuring out the GitHub api and authentication was a challenge, I used gh
to do some heavy lifting.
bash
scriptsawk
, find
, xargs
and other useful tools.Hit the β button if you found this useful.