From 85262973facd0f88efb125e4471e1ce256146db6 Mon Sep 17 00:00:00 2001 From: "Todd M. Guerra" Date: Fri, 9 Oct 2015 16:00:28 -0400 Subject: [PATCH 1/2] Add some extra detail to git log command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added the useful —oneline flag and also info on how to quit out (since I always forget). --- pages/common/git-log.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/git-log.md b/pages/common/git-log.md index 78ce6e160..21dfd3fcb 100644 --- a/pages/common/git-log.md +++ b/pages/common/git-log.md @@ -9,3 +9,11 @@ - Show the history of a particular file or directory, including differences `git log -p PATH` + +- Show only the first line of each commits + +`git log --oneline` + +- Quit out of git log + +`q` From 5dea29f48cfa0b2d82daf74b82842f7bfbe2d424 Mon Sep 17 00:00:00 2001 From: "Todd M. Guerra" Date: Mon, 12 Oct 2015 10:23:23 -0400 Subject: [PATCH 2/2] Remove q info and change path to correct format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed q as it’s kind of generic and applies to many commands. Also changed PATH to {{path}} to match the formatting of the other files. --- pages/common/git-log.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/common/git-log.md b/pages/common/git-log.md index 21dfd3fcb..f4e5e8f8f 100644 --- a/pages/common/git-log.md +++ b/pages/common/git-log.md @@ -8,12 +8,8 @@ - Show the history of a particular file or directory, including differences -`git log -p PATH` +`git log -p {{path}}` - Show only the first line of each commits `git log --oneline` - -- Quit out of git log - -`q`