Created
August 9, 2024 12:59
-
-
Save christophberger/18aa1e711b6c13e630e243a0d322ec0f to your computer and use it in GitHub Desktop.
Graphite Demo Verification Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script trashes the current local repo | |
# and recreates all steps from the article. | |
# | |
# Start in the parent dir of the cloned repo "graphite-demo". | |
# Ensure the repo is deleted on GitHub (via the browser as I gave gh no delete rights.) | |
trash graphite-demo | |
# gh repo delete christophberger-articles/graphite-demo # if gh delete is activated | |
gh repo create christophberger-articles/graphite-demo --private --clone | |
cd graphite-demo | |
echo frontend >frontend.js | |
echo server >server.go | |
echo database >database.go | |
git add -A | |
git commit -m "initial commit" | |
git push | |
gt init | |
echo gt init completed | |
gt ls | |
gt sync | |
echo gt sync completed | |
echo statistics page db layer >>database.go | |
echo commit changes and create a PR | |
git add -A | |
gt create --message "feat (DB): Add statistics view" | |
echo DB branch | |
gt ls | |
echo statistics page handler >>server.go | |
gt create --all --message "feat (server): Add statistics view" | |
echo server branch | |
gt ls | |
echo statistics page interactions >>frontend.js | |
gt create --all --message "feat (frontend): Add statistics view" | |
echo frontend branch | |
gt ls | |
gt checkout main | |
echo someone changed the style >frontend.css | |
git add frontend.css | |
git commit -am "feat: add new CSS file" | |
gt checkout 06-17-feat_frontend_add_statistics_view | |
echo after change in main | |
gt ls | |
gt restack | |
echo after restack | |
gt ls | |
gt checkout 06-17-feat_db_add_statistics_view | |
echo fix the db code >>database.go | |
gt modify -a | |
echo modified db branch | |
gt ls | |
gt checkout 06-17-feat_server_add_statistics_view | |
echo alternate stats view >alternate.go | |
gt create --insert --all --message "feat: add alternate stats view (server)" | |
echo inserted alternate stats view | |
gt submit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment