mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 09:53:25 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Trim whitespace and Git comments from a file:
|
||||
|
||||
`cat {{path/to/file}} | git stripspace --strip-comments`
|
||||
`cat {{path/to/file}} | git stripspace {{[-s|--strip-comments]}}`
|
||||
|
||||
- Convert all lines in a file into Git comments:
|
||||
|
||||
`git stripspace --comment-lines < {{path/to/file}}`
|
||||
`git stripspace {{[-c|--comment-lines]}} < {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user