How to attach file to a github issue?

后端 未结 12 1586
天命终不由人
天命终不由人 2020-12-23 12:48

I migrated with a project from Bitbucket to Github and I can not find a way to attach a file to an issue (ex: screenshot, specs, etc)

How to do it?

相关标签:
12条回答
  • 2020-12-23 13:31

    I found an easy way to embed images in issues using Skitch. Just set up Skitch sharing and auto-copy the URL to the clipboard. Then paste it in when writing up the issue. I blogged about it here.

    0 讨论(0)
  • 2020-12-23 13:36

    8 years later (Dec. 2020), you can not only drag and drop images to PR/issues, but also... videos!

    Video upload public beta

    You can now upload .mp4 and .mov files to issue, pull request, and discussion comments to share reproduction steps, design ideas, and experience details with your team.

    The public beta will gradually rollout to all GitHub accounts over the coming week.

    0 讨论(0)
  • 2020-12-23 13:38

    Use gist.github.com to upload any contents like code, log, html files etc. and share the link.

    0 讨论(0)
  • 2020-12-23 13:42

    As an illustration of the previous answers, see this comment:

    I create a repository called catfood http://github.com/blueheadpublishing/catfood/ where I keep misc stuff (like screenshots and other attachments).
    That way I can reference them in issues.

    See https://github.com/blueheadpublishing/bookshop/issues/10

    Some images showing the types of layout templates we want to have generated by templates:

    • Example One - Three Percentage Columns
    • Example Two - Two Percentage Columns Left
    • Example Three - Two Percentage Columns Right

    Back in 2009, GitHub expressed the intent to add attachment to issues.

    Attachments are something we'd like to add.

    That topic wasn't raised since in the GitHub group though...

    0 讨论(0)
  • 2020-12-23 13:42

    OK, here's what I use for screenshots.

    http://www.techsmith.com/jing.html

    It's free, fast, automatically uploads the image and pastes a URL link to your clipboard which you can Ctrl-V into the GitHub issue instantly.

    It was a big sigh of relief when I discovered this :)

    0 讨论(0)
  • 2020-12-23 13:44

    ZenHub.io Chrome plug-in will enable you to add any type of file to a github issue. It's stored on ZenHub's AWS server instead of github.com. From their website...

    GitHub only allows you to upload image files. ZenHub adds the ability to upload any type of file into issues and comments, transferring securely to Amazon S3. With this you can really take your workflow to the next level; try using GitHub for everything! Centralized collaboration and transparency are awesome.

    Update:

    As of 11/03/2015 you can now upload these types of files to github without any extension or plug-in: PNG, GIF, JPG, DOCX, PPTX, XLSX, TXT, or PDF

    0 讨论(0)
提交回复
热议问题