mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
add everything but whitespace changes
This commit is contained in:
parent
a7cb20ee0f
commit
318484a77f
|
@ -145,6 +145,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
||||||
* [Specific fetch reference](#specific-fetch-reference)
|
* [Specific fetch reference](#specific-fetch-reference)
|
||||||
* [Find common ancestor of two branches](#find-common-ancestor-of-two-branches)
|
* [Find common ancestor of two branches](#find-common-ancestor-of-two-branches)
|
||||||
* [List unpushed git commits](#list-unpushed-git-commits)
|
* [List unpushed git commits](#list-unpushed-git-commits)
|
||||||
|
* [Add everything, but whitespace changes](#add-everything-but-whitespace-changes)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
|
@ -996,5 +997,10 @@ git log @{u}..
|
||||||
git cherry -v
|
git cherry -v
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Add everything, but whitespace changes
|
||||||
|
```sh
|
||||||
|
git diff --ignore-all-space | git apply --cached
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
|
|
@ -425,4 +425,7 @@
|
||||||
"title": "List unpushed git commits",
|
"title": "List unpushed git commits",
|
||||||
"tip": "git log --branches --not --remotes",
|
"tip": "git log --branches --not --remotes",
|
||||||
"alternatives": ["git log @{u}..", "git cherry -v"]
|
"alternatives": ["git log @{u}..", "git cherry -v"]
|
||||||
}]
|
}, {
|
||||||
|
"title": "Add everything, but whitespace changes",
|
||||||
|
"tip": "git diff --ignore-all-space | git apply --cached"
|
||||||
|
}]
|
Loading…
Reference in New Issue
Block a user