Skip to main content

rt git

rt › git

Everyday git shortcuts

Usage​

bash
rt git

Subcommands​

CommandDescription
rebaseRebase onto main and auto-resolve easy conflicts
resetReset your branch safely
backupSave a backup of this branch
restoreBring a branch back from a backup
pullPull from origin
pushPush this branch, fixing its upstream if needed
upstreamPoint this branch at its origin branch
statusWhat's changed on this branch
diffShow one file's changes
logRecent commits on this branch
branchesYour branches and how far ahead or behind they are
amendAdd staged changes to the last commit
undoUndo the last commit, keep its changes
stashSet changes aside and bring them back
tagCreate, list, delete and push tags