(To be improved)
- httpie (which provides the
http
command) —pip install httpie
- Save the
git-branch-protection.sh
asgit-branch-protection
somewhere in your path (something like~/bin
or~/.local/bin
if you already use it) - Generate a GitHub token and save it as
~/.config/github_token
.
$ git branch-protection protect
Can i simply use it by
sh git-branch-protection.sh action repo_name branch
I am getting the following error while doing this
Update: The issue resolved by updating python and pip version