File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 44
55# Apply Diff File
66
7-
87![ Category: Patch & Diff] ( https://img.shields.io/badge/Category-Patch%20%26%20Diff-blue )
98
109#### Command
10+
1111``` sh
1212git apply changes.diff
1313```
1414
1515#### Examples
16+
1617- ** Apply a diff file of uncommitted changes.**
1718
1819``` sh
19- git apply changes.diff` ` `
20+ git apply changes.diff
21+ ```
22+
2023- ** Show what would change if the diff were applied.**
2124
22- ` ` ` sh
25+ ```` sh
2326git apply --stat changes.diff` ` `
2427
2528
@@ -32,3 +35,4 @@ git apply --stat changes.diff```
3235---
3336
3437_Author: mike-rambil • Updated: 2024-06-10 • Tags: diff, apply, uncommitted_
38+ ````
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function renderExamples(examples) {
9797 if ( ! examples || ! examples . length ) return '' ;
9898 let out = '' ;
9999 examples . forEach ( ( ex ) => {
100- out += `- **${ ex . description || '' } **\n\n\`\`\`sh\n${ ex . code } \`\`\`\n` ;
100+ out += `- **${ ex . description || '' } ** \n\n \`\`\`sh\n${ ex . code } \`\`\`\n` ;
101101 } ) ;
102102 return renderSection ( 'Examples' , out ) ;
103103}
You can’t perform that action at this time.
0 commit comments