Show Menu
Cheatography

TIG shortcuts Cheat Sheet (DRAFT) by [deleted]

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Main View

 
Pushing and Pulling
CTRL+O
Pull all remote changes and rebase. (git pull -r)
CTRL+P
Prompt remote name. Push current branch (up to and including currently selected commit) to remote­/ma­ster. (git push remote commit­:master
 
Branches
CTRL+B
Prompt branch name. Create new branch at currently selected commit. (git checkout -b)
SHIFT+B
Check out first branch on currently selected line. (git checkout branch)
SHIFT+H
Move HEAD to currently selected commit. (git checkout commit)
R
Go to REFS view
 
Commits
CTRL+R
Intera­ctive Rebase of current branch using currently selected commit as base. (git rebase -i
SHIFT+U
Add all unstaged change­s/files to staging area. (git add .)
SHIFT+C
Commit all staged changes. (git commit)
SHIFT+V
Prompt commit message. Commit all staged changes. (git commit -m)
SHIFT+A
Prompt commit message. Merge all staged changes with previous commit. (git commit --amend -m)
CTRL+A
Merge all staged changes with previous commit. (git commit --amend -no-edit)
CTRL+S
Stash all dirty content. (git stash)
SHIFT+P
Cherry pick selected commit on to current branch. (git cherry­-pick)
CTRL+D
Promt time/date. Change date of selected commit. (git redate) (requires git redate)
 

Misc

T
Tree View
E
Edit current file
B
See git blame for current file
O
Options for current View

Status View (S)

Shift+V
rompt commit message. Commit all staged changes. (git commit -m)
Shift+S
Stash all unstaged changes. (git stash --keep­-index)
SHIFT+U
Add all unstaged change­­s/­files to staging area. (git add .)

Stash view (Y)

SHIFT+A
Apply selected stash to current branch. (git stash --apply)
SHIFT+D
Drop selected stash (git stash drop)

REFS View (R)

SHIFT+B
Prompt branch name. Create new branch and check it out. (git checkout -b)
SHIFT+C
Checkout selected branch. (git checkout)
!
Delete selected branch (git branch -d)
CTRL+R
Prompt branch name. Rename selected branch (git branch -m)