clairexen / handicraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Various unsorted experiments. One branch per year:

Checking out one year:

bash -ex clone-year.sh YYYY

Checking out all years:

bash -ex clone-year.sh {2008..2024}

Creating a new year:

create_handicraft_year() { year="$1"; (
	set -ex
	git clone --reference "$PWD" git@github.com:clairexen/handicraft.git handicraft-${year}
	cd handicraft-${year}
	git checkout --orphan handicraft-${year}
	rm *; touch .gitignore; git add -u .gitignore
	git commit -sm "Create handicraft-${year}"
	git push --set-upstream origin handicraft-${year}
	cd ..
	rm -rf handicraft-${year}
	bash -ex clone-year.sh ${year}
); }
create_handicraft_year 2024

About


Languages

Language:Shell 100.0%