From b71c9cdcf3faaf14c42dcbb839cc908625c0df88 Mon Sep 17 00:00:00 2001 From: alefir Date: Tue, 18 Apr 2017 10:09:07 -0700 Subject: [PATCH] git-show: add page (#1331) --- pages/common/git-show.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/git-show.md diff --git a/pages/common/git-show.md b/pages/common/git-show.md new file mode 100644 index 000000000..7e2dc8dc8 --- /dev/null +++ b/pages/common/git-show.md @@ -0,0 +1,19 @@ +# git show + +> Show various types of git objects(commits, tags etc.). + +- Show changes made in the latest commit: + +`git show` + +- Show changes made in a given commit: + +`git show {{commit}}` + +- Show changes made in the commit with a given tag: + +`git show {{tag}}` + +- Show the changes made n commits ago on a branch: + +`git show {{branch}}~{{n}}`