-
Notifications
You must be signed in to change notification settings - Fork 128
Dev Add Images to the Wiki
sgilda edited this page Jun 1, 2015
·
4 revisions
-
Clone the Windup Wiki into a
windup.wiki/
directory using the SSH clone URL:
git clone git@github.com:USER_NAME/windup.git windup.wiki
-
Navigate to the new
windup.wiki/
directory. -
Add the upstream repository.
git remote add -f upstream git@github.com:windup/windup.wiki.git
-
Check out a branch to work in.
git checkout -b BRANCH_NAME upstream/master
-
Copy the image into the
windup.wiki/images
directory
cp IMAGE_NAME.png images/
-
Add the new image to Git
git add images/IMAGE_NAME.png
-
Commit the change
git commit -m "Add new image"
-
Push the change to your Windup Wiki repository.
git push origin HEAD:master
-
Test the new image in a page on your own Wiki. Don’t forget to add the
:imagesdir: images
directive to the beginning of the page to point to the images directory.image:IMAGE_NAME.png[New Image]
For example:
My Image
-
If it works, push the image to the upstream repository
git push upstream HEAD:master