2.2. Images With Git - shinokada/gitnotes GitHub Wiki

Images with git

# make a directory and cd to it.
$ mkdir ~/Github_wiki && cd $_
# clone your wiki
$ git clone [email protected]:USER/REPO.wiki.git
# create a image dir and cd to it.
$ mkdir images && cd -
# add images in images dir
$ mv ~/somedir/someimage.png ~/Github_wiki/REPO.wiki/images/someimage.png
# add, commit and push it
$ git add .
$ git commit -m "someimage.png added"
$ git push origin master

Go to your wiki and add a sample page and add the following.

[[/images/vimnote1.png]]

Adding link to an image.

[/images/rebase1.png]

Sample in README page

Resources

Stackoverflow my github page

⚠️ **GitHub.com Fallback** ⚠️