File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
145
145
* [ Specific fetch reference] ( #specific-fetch-reference )
146
146
* [ Find common ancestor of two branches] ( #find-common-ancestor-of-two-branches )
147
147
* [ List unpushed git commits] ( #list-unpushed-git-commits )
148
+ * [ Add everything, but whitespace changes] ( #add-everything-but-whitespace-changes )
148
149
149
150
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
150
151
<!-- @doxie.inject end toc -->
@@ -996,5 +997,10 @@ git log @{u}..
996
997
git cherry -v
997
998
```
998
999
1000
+ ## Add everything, but whitespace changes
1001
+ ``` sh
1002
+ git diff --ignore-all-space | git apply --cached
1003
+ ```
1004
+
999
1005
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1000
1006
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 425
425
"title" : " List unpushed git commits" ,
426
426
"tip" : " git log --branches --not --remotes" ,
427
427
"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
+ }]
You can’t perform that action at this time.
0 commit comments