Skip to content

Commit 318484a

Browse files
committed
add everything but whitespace changes
1 parent a7cb20e commit 318484a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
145145
* [Specific fetch reference](#specific-fetch-reference)
146146
* [Find common ancestor of two branches](#find-common-ancestor-of-two-branches)
147147
* [List unpushed git commits](#list-unpushed-git-commits)
148+
* [Add everything, but whitespace changes](#add-everything-but-whitespace-changes)
148149

149150
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
150151
<!-- @doxie.inject end toc -->
@@ -996,5 +997,10 @@ git log @{u}..
996997
git cherry -v
997998
```
998999

1000+
## Add everything, but whitespace changes
1001+
```sh
1002+
git diff --ignore-all-space | git apply --cached
1003+
```
1004+
9991005
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
10001006
<!-- @doxie.inject end -->

tips.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -425,4 +425,7 @@
425425
"title": "List unpushed git commits",
426426
"tip": "git log --branches --not --remotes",
427427
"alternatives": ["git log @{u}..", "git cherry -v"]
428-
}]
428+
}, {
429+
"title": "Add everything, but whitespace changes",
430+
"tip": "git diff --ignore-all-space | git apply --cached"
431+
}]

0 commit comments

Comments
 (0)