- have the
git
command installed, and (optionally)wget
orcurl
- get this repo,
git clone [email protected]:rossabaker/abolish-ice-graphiti.git
- update
dates.txt
for current week, via./dates.sh < dow.txt > dates.txt
or./raster.sh
(use./raster -h
to see all the options) - On Github, create a new target repo to be graffitied. I like
abolish-ice
- get a local copy of the target repository with
git clone
- make a new branch, perhaps
git checkout -b drop-ice
- run
username=<user> ./<path_to_repo>/abolish-ice-graphiti/paint.sh
in the target repo, with your git user name so we get the commit count right,- or
./<path_to_repo>/abolish-ice-graphiti/paint.sh
if you don't have havecurl
/wget
- or
commitmax=<most_commits_in_one_day> ./<path_to_repo>/abolish-ice-graphiti/paint.sh
if you don't havecurl
/wget
and your colors are wrong cuz you have a pre-existing day with more than 50 commits (see Troubleshooting below)
- or
- [optionally] switch default branch back and forth if things look wrong (see Troubleshooting below)
- Visit the GitHub settings page for yor target repo (
abolish-ice
) and under the branches tab, switch the default github branch back to the one without graffiti commits - reset graffiti branch from placeholder branch,
git reset main
- update
dates.txt
for current week (2. reprised) - run
paint.sh
, with the users name (6. reprised) paint.sh
's git push will fail, so do a git push -f [maybe the git push doesn't really belong in paint.sh but in a parent script?]- switch the default github branch back to the one with graffiti commits
See the guide on which contributions count. Specifically, make sure:
- The repository you run paint.sh in is not a fork.
- You run it on the default branch of your repository.
The script needs to generate many more commits than your busiest days to make a loud and clear statement. You can use the environmental variable username
to tell paint.sh
your github user (username=myname ./paint.sh
) and it can check your profile, provided you have curl
or wget
installed. Otherwise, The maxcommit
variable directly determines the number of commits. If your graph does not turn a crisp, dark green "ABOLISH ICE,"" try maxcommit=100 ./paint.sh
or higher.
If the right side of the graph is dark green but the rest is faded, then you can try switching the default branch of your abolish-ice
repository back to main
(or some non-graffitied branch), and then switching back to the branch with your graffiti commits. This issue is being tracked under #10.
Bootstrapped from github-graffiti.