From 0012483eaad8430ac8fac74a62b9e382733501b8 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 7 Sep 2018 00:09:06 +0200 Subject: [PATCH] tig: add page (#2303) --- pages/common/tig.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/tig.md diff --git a/pages/common/tig.md b/pages/common/tig.md new file mode 100644 index 0000000000..eb4b4df47d --- /dev/null +++ b/pages/common/tig.md @@ -0,0 +1,27 @@ +# tig + +> A text-mode interface for Git. + +- Show the sequence of commits starting from the current one in reverse chronological order: + +`tig` + +- Show the history of a specific branch: + +`tig {{branch}}` + +- Show the history of specific files or directories: + +`tig {{path1}} {{path2}} ...` + +- Show the difference between two references (such as branches or tags): + +`tig {{base_ref}}..{{compared_ref}}` + +- Display commits from all branches and stashes: + +`tig --all` + +- Start in stash view, displaying all saved stashes: + +`tig stash`