Add try repo to publish experiments to GitHub#122
Open
elalemanyo wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Experiments deserve a home. Sometimes, later, they deserve a git repo too 🙂
This adds
try repo, a small workflow for publishing a plain try directory to a fresh GitHub repository using the GitHub CLI. It keeps the lightweight “organized chaos” flow intact: start with a dated experiment folder, and if it grows up, give it a remote without manually doing thegit init/first commit/gh repo createdance.What changed
try repo [path-or-name] [repo-name] [--private|--public]try exec repo ...for shell-wrapper/manual script usageCtrl-Uin the TUI to publish the selected tryYYYY-MM-DD-prefix--publicand TUI toggle support.gitto avoid touching existing history.gitafter a successfulgh repo create --push.gitin place if any git/gh step fails, so the user can inspect and retryExample
Why
try is great at giving messy experiments a real place to live. This adds the next step for experiments that become worth sharing, backing up, or continuing somewhere else.
It does not replace graduate/local project workflows. It only publishes a plain try folder to GitHub.
Tests