From 440a78c3572ea34ca94645a7a3d3985f31ebfa54 Mon Sep 17 00:00:00 2001 From: S N Munendra Date: Thu, 23 Jun 2016 22:43:26 +0530 Subject: [PATCH] Add tip to unstage staged file Update tips --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index e2928a8..de14a4f 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Clone a shallow copy of a repository](#clone-a-shallow-copy-of-a-repository) * [Search Commit log across all branches for given text](#search-commit-log-across-all-branches-for-given-text) * [Get first commit in a branch (from master)](#get-first-commit-in-a-branch-from-master) +* [Unstaging Staged file](#unstaging-staged-file) @@ -846,5 +847,10 @@ git log --all --grep='' git log master.. --oneline | tail -1 ``` +## Unstaging Staged file +```sh +git reset HEAD +``` + diff --git a/tips.json b/tips.json index 37b72c7..37ff226 100644 --- a/tips.json +++ b/tips.json @@ -370,4 +370,7 @@ }, { "title": "Get first commit in a branch (from master)", "tip": "git log master.. --oneline | tail -1" +}, { + "title":"Unstaging Staged file", + "tip": "git reset HEAD " }]