Git Operations
Use these commands for everyday local Git movement.
Branches And Status
gtl status
gtl branch
gtl branch --main
gtl recent
gtl dirtygtl branch fuzzy-searches branches and checks out the selected match. gtl status gives a compact repository overview.
Commit And Push
gtl commit "ship the thing"
gtl amend
gtl push
gtl syncgtl commit stages all changes and creates a commit from a provided, positional, or default message. gtl push can auto-commit local changes before pushing the current branch.
Keep Branches Current
gtl update
gtl main
gtl main --reset --backup
gtl fork-syncgtl main rebases the current branch onto the remote default branch. Use --reset only when you intentionally want to hard-reset the current branch; --backup creates a recovery branch first.
Stash And Cleanup
gtl stash save -m "wip"
gtl stash list
gtl stash apply 1 --drop
gtl clean --dry-rungtl clean deletes merged local branches and can also inspect merged remote branches with --remote --dry-run.
Worktrees
gtl worktree
gtl worktree list
gtl worktree find 123 --path
gtl worktree delete feature/my-branch --dry-runWorktree helpers resolve branches, PR numbers, and PR URLs to local worktree paths before destructive operations.