mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-30 02:39:49 +02:00
Add wiki images section under images/GIFs
This commit is contained in:
38
README.md
38
README.md
@@ -17,7 +17,6 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
|
|||||||
- [Cross-Link Issues](#cross-link-issues)
|
- [Cross-Link Issues](#cross-link-issues)
|
||||||
- [Contributing Guidelines](#contributing-guidelines)
|
- [Contributing Guidelines](#contributing-guidelines)
|
||||||
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
|
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
|
||||||
- [Embedding Images in GitHub Wiki](#embedding-images-in-github-wiki)
|
|
||||||
- [Commit History by Author](#commit-history-by-author)
|
- [Commit History by Author](#commit-history-by-author)
|
||||||
- [Empty Commits :trollface:](#empty-commits-trollface)
|
- [Empty Commits :trollface:](#empty-commits-trollface)
|
||||||
- [Comparing Branches](#comparing-branches)
|
- [Comparing Branches](#comparing-branches)
|
||||||
@@ -29,6 +28,7 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
|
|||||||
- [Expanding Context in Diffs](#expanding-context-in-diffs)
|
- [Expanding Context in Diffs](#expanding-context-in-diffs)
|
||||||
- [Emojis](#emojis)
|
- [Emojis](#emojis)
|
||||||
- [Images/GIFs](#imagesgifs)
|
- [Images/GIFs](#imagesgifs)
|
||||||
|
- [Embedding Images in GitHub Wiki](#embedding-images-in-github-wiki)
|
||||||
- [Quick Quoting](#quick-quoting)
|
- [Quick Quoting](#quick-quoting)
|
||||||
- [Styled Git Status](#styled-git-status)
|
- [Styled Git Status](#styled-git-status)
|
||||||
- [Styled Git Log](#styled-git-log)
|
- [Styled Git Log](#styled-git-log)
|
||||||
@@ -251,27 +251,6 @@ GitHub uses [Linguist](https://github.com/github/linguist) to perform language d
|
|||||||
|
|
||||||
[*Read more about GitHub Flavored Markdown.*](https://help.github.com/articles/github-flavored-markdown)
|
[*Read more about GitHub Flavored Markdown.*](https://help.github.com/articles/github-flavored-markdown)
|
||||||
|
|
||||||
## Embedding Images in GitHub Wiki
|
|
||||||
There are multiple ways of embedding images in Wiki pages. There's the standard Markdown syntax:
|
|
||||||
|
|
||||||
```markdown
|
|
||||||

|
|
||||||
```
|
|
||||||
|
|
||||||
Which produces:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
But there's also a syntax that allows things like specifying the height or width of the image:
|
|
||||||
|
|
||||||
```markdown
|
|
||||||
[[ http://www.sheawong.com/wp-content/uploads/2013/08/keephatin.gif | height = 100px ]]
|
|
||||||
```
|
|
||||||
|
|
||||||
Which produces:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Commit History by Author
|
## Commit History by Author
|
||||||
|
|
||||||
To view all commits on a repo by author add `?author=username` to the URL.
|
To view all commits on a repo by author add `?author=username` to the URL.
|
||||||
@@ -399,13 +378,24 @@ The top 5 used Ejmojis on GitHub are:
|
|||||||
Images and GIFs can be added to comments, READMEs etc.:
|
Images and GIFs can be added to comments, READMEs etc.:
|
||||||
|
|
||||||
```
|
```
|
||||||

|

|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
All images are cached on GitHub, so if your host goes down, the image will remain available.
|
All images are cached on GitHub, so if your host goes down, the image will remain available.
|
||||||
|
|
||||||
|
### Embedding Images in GitHub Wiki
|
||||||
|
There are multiple ways of embedding images in Wiki pages. There's the standard Markdown syntax (shown above). But there's also a syntax that allows things like specifying the height or width of the image:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
[[ http://www.sheawong.com/wp-content/uploads/2013/08/keephatin.gif | height = 100px ]]
|
||||||
|
```
|
||||||
|
|
||||||
|
Which produces:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Quick Quoting
|
## Quick Quoting
|
||||||
|
|
||||||
When on a comment thread and you want to quote something someone previously said, highlight the text and press `r`, this will copy it into your text box in the block-quote format.
|
When on a comment thread and you want to quote something someone previously said, highlight the text and press `r`, this will copy it into your text box in the block-quote format.
|
||||||
|
Reference in New Issue
Block a user