File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
36
36
- [ GitHub Talks] ( #github-talks )
37
37
- [ Git] ( #git )
38
38
- [ Previous Branch] ( #previous-branch )
39
+ - [ Stripspace] ( #stripspace )
39
40
- [ Checking out Pull Requests] ( #checking-out-pull-requests )
40
41
- [ Empty Commits :trollface:] ( #empty-commits-trollface )
41
42
- [ Styled Git Status] ( #styled-git-status )
@@ -457,6 +458,21 @@ $ git checkout -
457
458
458
459
[ * Read more about Git branching.* ] ( http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging )
459
460
461
+ ### Stripspace
462
+
463
+ Git Stripspace:
464
+
465
+ - Strips trailing whitespace
466
+ - Collapses newlines
467
+ - Adds newline to end of file
468
+
469
+ A file must be passed when calling the command, e.g.:
470
+ ``` bash
471
+ $ git stripspace < README.md
472
+ ```
473
+
474
+ [ * Read more about the Git ` stripspace ` command.* ] ( https://www.kernel.org/pub/software/scm/git/docs/git-stripspace.html )
475
+
460
476
### Checking out Pull Requests
461
477
If you want to check out pull request locally, you can fetch it using that command:
462
478
You can’t perform that action at this time.
0 commit comments