From 0cd100f768b38d135a7c7c552bb878bf845d170b Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Thu, 16 Jul 2015 12:29:32 +0530 Subject: [PATCH] Stage parts of a changed file, tip --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6d74c39..af0fe14 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ * [Delete remote branch](https://github.com/git-tips/tips#delete-remote-branch) * [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head) * [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url) +* [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file) @@ -88,5 +89,10 @@ git checkout -- git remote set-url origin ``` +## Stage parts of a changed file, instead of the entire file +```sh +git add -p +``` +