A filepath-oriented command line utility for streamlining development and administration over multiple git repositories.
cd ~/Workspace/folder_of_repos/
barrage git checkout -b AOL/something-i-need-to-do-in-a-few-repos
barrage cp ~/Desktop/pull_request_template.md .github/ && git commit -m "chore: added pull request template." .github/
barrage poetry lock && git commit -m "chore: ran lock" && git push
barrage alias pr gh pr create --fill && gh pr merge --auto --merge && gh pr view --json url | jq -r ".url"
barrage pr
barrage alias whereami basename -s .git `git config --get remote.origin.url`
barrage alias status whereami && git status
barrage status
- Git
- Bash
-
Clone the repository:
git clone https://github.com/aloutfi/barrage.git cd barrage
-
Make the script executable:
chmod +x barrage
-
Move the script to a directory in your PATH, for example:
sudo mv barrage /usr/local/bin/
To create an alias, use the barrage alias
command followed by the alias name and the command you want to alias. For example:
barrage alias myalias "echo Hello, World!"
This will create an alias named myalias
that runs the command echo Hello, World!
.
To use an alias, simply call it by its name:
barrage myalias
This will execute the command associated with the alias.
To list all aliases, you can view the contents of the .barrage_aliases
file in your home directory:
cat ~/.barrage_aliases
To remove an alias, you can manually edit the .barrage_aliases
file and remove the corresponding line.