From 5d23b75504901dfe9bbb212db9eac65bbad75805 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sun, 25 Dec 2016 21:23:02 +0530 Subject: [PATCH] format-patch --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 57829c3..c52cb06 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Edit [local/global] git config](#edit-localglobal-git-config) * [blame on certain range](#blame-on-certain-range) * [Show a Git logical variable.](#show-a-git-logical-variable) +* [Preformatted patch file.](#preformatted-patch-file) @@ -1020,5 +1021,10 @@ git blame -L , git var -l | ``` +## Preformatted patch file. +```sh +git format-patch -M upstream..topic +``` + diff --git a/tips.json b/tips.json index 34deda9..cc95b68 100644 --- a/tips.json +++ b/tips.json @@ -437,4 +437,7 @@ }, { "title": "Show a Git logical variable.", "tip":"git var -l | " +}, { + "title": "Preformatted patch file.", + "tip": "git format-patch -M upstream..topic" }] \ No newline at end of file