Skip to content

Commit b22f89a

Browse files
authored
Merge pull request #98 from adityasiwan/master
Add tip for Interactive staging
2 parents 3b398f8 + f9c84b6 commit b22f89a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
9393
* [Marks your commit as a fix of a previous commit.](#marks-your-commit-as-a-fix-of-a-previous-commit)
9494
* [squash fixup commits normal commits.](#squash-fixup-commits-normal-commits)
9595
* [skip staging area during commit.](#skip-staging-area-during-commit)
96+
* [Interactive staging.](#interactive-staging)
9697
* [List ignored files.](#list-ignored-files)
9798
* [Status of ignored files.](#status-of-ignored-files)
9899
* [Commits in Branch1 that are not in Branch2](#commits-in-branch1-that-are-not-in-branch2)
@@ -688,6 +689,11 @@ git rebase -i --autosquash
688689
git commit --only <file_path>
689690
```
690691

692+
## Interactive staging.
693+
```sh
694+
git add -i
695+
```
696+
691697
## List ignored files.
692698
```sh
693699
git check-ignore *

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@
282282
}, {
283283
"title": "skip staging area during commit.",
284284
"tip": "git commit --only <file_path>"
285+
}, {
286+
"title": "Interactive staging.",
287+
"tip": "git add -i"
285288
}, {
286289
"title": "List ignored files.",
287290
"tip": "git check-ignore *"

0 commit comments

Comments
 (0)