On the wake of the BLM movement, I discovered that GitHub's master get its roots from a Master/Slave metaphor. In a effort to remove such indignity, here is a script to clean:
- local repositories
- remote GitHub repositories
As the git init default main branch is hardcoded, and until corrected versions reach our workstations, it also provide a Git repository template without the master branch.
export GIT_TEMPLATE_DIR=~/repositories/template.git
export GIT_HOME_DIR=~/workshop
export GITHUB_USER=VictorSchoelcher
export GITHUB_TOKEN=123
export DEFAULT_BRANCH=trunk
./aboli.sh
You will need to create a token to clean your GitHub's repos.
This is a quick and dirty script, please submit improvements as they arise in your workflow.
I named the project victor
to reference
Victor Schroelcher, who've been
instrumental in slavery abolision in France and colonies.