Adding screenshots to pull requests

12 Feb

Today I found myself having to add a screen shot to a pull request on Github.

What is the quickest way of doing this?

There are a few ways to do this fast, but the quickest I have found is as follows.

Change the default path for screenshots

By default on Mac OSX screen shots just get dumped on your desktop. Not much use to me, as usually the whole point of a screen shot is to send it to someone. Who takes a screen shot for themselves to look at? Duh.

Instead, I want all my screen shots with ⌘⇧F4 to go in my public Dropbox folder.

To change this use the following commands at your terminal;

$ defaults write com.apple.screencapture location ~/Dropbox/Public/
$ killall SystemUIServer

(the second command just reloads your profile so the changes take effect)

Now you can simply right click on the image, select “Copy public link” and paste in to Github

Copy public URL

Copy public URL

 

Using markdown, you can add an embedded image as follow:

![alt text](http://url)
Adding image with markdown

Adding image with markdown

The image embedded in the pull request

The image embedded in the pull request

One Response to “Adding screenshots to pull requests”

  1. Rob June 3, 2012 at 11:51 pm #

    sdaf asd f asf asdf

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Are you human? Click the Grapes...