From a1e87968bebb878c1fe1ee9c52a642d39cf1a09f Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 3 Feb 2014 21:11:10 +0800 Subject: [PATCH] fix style in latest post --- _posts/2014/2014-02-03-Git-cook-book.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/2014/2014-02-03-Git-cook-book.md b/_posts/2014/2014-02-03-Git-cook-book.md index b171cf0..943d4b1 100644 --- a/_posts/2014/2014-02-03-Git-cook-book.md +++ b/_posts/2014/2014-02-03-Git-cook-book.md @@ -11,7 +11,7 @@ tags: -> 本文始于自己Evernote,由于大部分原本是英文记录的,所以干脆全部用英文。 +本文始于自己Evernote,由于大部分原本是英文记录的,所以干脆全部用英文。 > Most of the content comes from my Evernote, therefore, this post will be updated once I have more on my note and your contribution is highly appropriated. ---------- @@ -45,7 +45,7 @@ git log --follow (Show rename) ``` ### How to only produce one commit for a merge? ----------- -> Usually all local commit history will be merged to the target branch. Below command only produce a new commit for the merge. +Usually all local commit history will be merged to the target branch. Below command only produce a new commit for the merge. ``` git merge --squash bugfix git commit -m 'fix bug' @@ -67,7 +67,7 @@ git push -f origin master ### How to find a lost commit? -------------- -> As a last resort in case your commit is dangling and not connected to history at all, you can search the reflog itself with the `-g` flag (short for `--walk-reflogs`) +As a last resort in case your commit is dangling and not connected to history at all, you can search the reflog itself with the `-g` flag (short for `--walk-reflogs`) ``` git log -g --grep='Build 0051' @@ -75,7 +75,7 @@ git log -g --grep='Build 0051' **Be aware that the reflog only contains the local history.** ### How to know which branch is the most recent? -------------------- -> Sort the branches by commit time. +Sort the branches by commit time. ``` git config --global alias.latest "for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)'"