CLI that copies GitLab origin/main onto GitHub main using a temporary worktree so your current working tree stays untouched.
labtohub "Message"or run and follow prompts.labtohub -m "Message"still works too.- Fetches both remotes, creates a temporary worktree from
github/main, makes a branch named from your message (ornew), overwrites that branch withorigin/main, commits, merges into the stagingmainbranch, and pushes togithub/main. Cleans up the temp worktree afterward.
- Git remotes:
originpointing to GitLab,githubpointing to GitHub.
- Uses a merge into
github/main(no force-push). The temporary branch/worktree is recreated each run and your original working tree is not modified. - Warns and requires extra confirmation when your current working tree has uncommitted files, because only commits already on
origin/mainare copied.