File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 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)`.
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}..
996997git 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 -->
Original file line number Diff line number Diff line change 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+ }]
You can’t perform that action at this time.
0 commit comments