mirror of
https://github.com/namibia/tips.git
synced 2024-12-23 10:38:58 +00:00
Merge pull request #98 from adityasiwan/master
Add tip for Interactive staging
This commit is contained in:
commit
b22f89a61f
@ -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)
|
* [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)
|
* [squash fixup commits normal commits.](#squash-fixup-commits-normal-commits)
|
||||||
* [skip staging area during commit.](#skip-staging-area-during-commit)
|
* [skip staging area during commit.](#skip-staging-area-during-commit)
|
||||||
|
* [Interactive staging.](#interactive-staging)
|
||||||
* [List ignored files.](#list-ignored-files)
|
* [List ignored files.](#list-ignored-files)
|
||||||
* [Status of ignored files.](#status-of-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)
|
* [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 --only <file_path>
|
git commit --only <file_path>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Interactive staging.
|
||||||
|
```sh
|
||||||
|
git add -i
|
||||||
|
```
|
||||||
|
|
||||||
## List ignored files.
|
## List ignored files.
|
||||||
```sh
|
```sh
|
||||||
git check-ignore *
|
git check-ignore *
|
||||||
|
@ -282,6 +282,9 @@
|
|||||||
}, {
|
}, {
|
||||||
"title": "skip staging area during commit.",
|
"title": "skip staging area during commit.",
|
||||||
"tip": "git commit --only <file_path>"
|
"tip": "git commit --only <file_path>"
|
||||||
|
}, {
|
||||||
|
"title": "Interactive staging.",
|
||||||
|
"tip": "git add -i"
|
||||||
}, {
|
}, {
|
||||||
"title": "List ignored files.",
|
"title": "List ignored files.",
|
||||||
"tip": "git check-ignore *"
|
"tip": "git check-ignore *"
|
||||||
|
Loading…
Reference in New Issue
Block a user