Skip to main content

rt git

rt › git

Git operations (status, diff, log, rebase, commit, stash, tags)

Usage

rt git

Subcommands

CommandDescription
rebaseSmart rebase onto origin/master with auto-resolve
resetSafe reset with divergence detection
commitInteractive staged/unstaged commit picker
backupBack up the current branch
restoreRestore from a backup branch
pullPull from origin (mirror of GitHub Desktop's Pull button)
pushPush current branch to origin/<branch>, fixing wrong upstream
upstreamFix branch upstream to track origin/<branch>
statusWorking tree status: branch, ahead/behind, changed files
diffOne file's diff (hunks and lines) from git-core
logRecent commits on the current branch
branchesLocal branches with upstream and ahead/behind state
amendAmend the last commit with what is staged (message optional)
undoUndo the last commit, keeping its changes in the working tree
stashStash the working tree and manage stashes
tagCreate, list, delete, and push tags