From f9c84b6c61160c56b9085daf1d6644210dde614a Mon Sep 17 00:00:00 2001 From: Aditya Harsh Date: Wed, 22 Jun 2016 15:25:18 +0530 Subject: [PATCH] Add Interactive staging --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 887d0a1..4bbde61 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Marks your commit as a fix of a previous commit.](#marks-your-commit-as-a-fix-of-a-previous-commit) * [squash fixup commits normal commits.](#squash-fixup-commits-normal-commits) * [skip staging area during commit.](#skip-staging-area-during-commit) +* [Interactive staging.](#interactive-staging) * [List ignored files.](#list-ignored-files) * [Status of ignored files.](#status-of-ignored-files) * [Commits in Branch1 that are not in Branch2](#commits-in-branch1-that-are-not-in-branch2) @@ -688,6 +689,11 @@ git rebase -i --autosquash git commit -am ``` +## Interactive staging. +```sh +git add -i +``` + ## List ignored files. ```sh git check-ignore * diff --git a/tips.json b/tips.json index 4cb4cce..e8c6753 100644 --- a/tips.json +++ b/tips.json @@ -282,6 +282,9 @@ }, { "title": "skip staging area during commit.", "tip": "git commit -am " +}, { + "title": "Interactive staging.", + "tip": "git add -i" }, { "title": "List ignored files.", "tip": "git check-ignore *"