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)
|
||||
* [Find common ancestor of two branches](#find-common-ancestor-of-two-branches)
|
||||
* [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>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
|
@ -996,5 +997,10 @@ git log @{u}..
|
|||
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>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
Loading…
Reference in New Issue
Block a user