Live data from Hacker News

Upload files to your repositories

github.com

51–60 of 92 posts

Re: Upload files to your repositories

#51
post #49

Fun fact: you can hack this right now by dragging and dropping a file (ie. image) into the issues submission box and then using that URL in your code to display images.

I'm confused, haven't you always been able to do that? The issue submission box has always allowed image uploads.

Re: Upload files to your repositories

#52

Wait, so you couldn't add a file via the web before? I haven't used github except for pulling the source to projects but I would expect this was feature #1.

Well as it's based on git, before you just had to push it via the command line.

No, there's always (read: for a long time) been a "New file" button that takes you here: https://github.com/user/repo/new/branch

Re: Upload files to your repositories

#53

This feature has interesting synergy with GitHub Pages, where .md files can simply be dragged-and-dropped into a folder to get published as a blog post on the web. It may be enough to remove the must-be-programmer-who-understands-git barrier to entry, anyways. EDIT: GitHub Pages still requires specific file naming for posts and YAML front matter, so it's not perfectly non-programmer friendly. It might be a good idea…

Honestly, I think further development on prose.io UX and functionality is maybe a shorter path past the git barrier. If default branches could be set, new files were based on templates, and YAML presented as form fields, etc. Combined with drag-drop file or image addition, that sounds promising. Yes, detail/devils.

Re: Upload files to your repositories

#54
post #22

This feature has interesting synergy with GitHub Pages, where .md files can simply be dragged-and-dropped into a folder to get published as a blog post on the web. It may be enough to remove the must-be-programmer-who-understands-git barrier to entry, anyways. EDIT: GitHub Pages still requires specific file naming for posts and YAML front matter, so it's not perfectly non-programmer friendly. It might be a good idea…

You mean .org files, right? :-) I keep notes on Github that never touch a filesystem. I do my edits from a phone or tablet. If I have a lot to write, I'll use an app then copy directly into Github. Most of my notes are personal but I started breaking them out a couple weeks ago so I could keep them in public repos. https://github.com/melling/ErgonomicNotes https://github.com/melling/EditorNotes Why not work directly…

Question: What benefit do you derive from using org mode format if you aren't editing it in Emacs, where you can collapse and expand?

Re: Upload files to your repositories

#55
I think this is a great step, for several reasons -- both corporate and user-facing.

(1) It is true that this is more likely to turn GitHub into a generic file-dump place similar to DropBox. GitHub's infrastructure is sufficiently good to handle this, and this new addition is unlikely to disrupt the workflow of veteran users. However, since it is likely that some companies will use GitHub for file dumping, GitHub will be justified in charging companies a fee for particularly large repositories -- capitalizing on the file-dumping. I sense an alternate revenue stream coming in for GitHub.

(2) I've often run into situations in which I had written a small script and wanted to quickly turn that into a GitHub repo. To do so, I'd have to go through the online interface to initialize a new repo, and then make a folder on the command line, type a few commands, etc. Though it's a very short process, I couldn't understand why I couldn't just use the online interface to type up a readme and then drag-and-drop my script into the repo. The update smooths this work experience.

(3) Obviously, it'll make GitHub far more accessible to less technical users -- some users are intimidated by the Git learning curve, and this update makes them much more likely to use GitHub (and then slowly learn the ropes of using it via the command line).

(4) By inviting more non-technical users as in (3), it becomes more likely that (1) succeeds.

Re: Upload files to your repositories

#56

I think this is a great step, for several reasons -- both corporate and user-facing. (1) It is true that this is more likely to turn GitHub into a generic file-dump place similar to DropBox. GitHub's infrastructure is sufficiently good to handle this, and this new addition is unlikely to disrupt the workflow of veteran users. However, since it is likely that some companies will use GitHub for file dumping, GitHub wil…

[Hub](https://hub.github.com/) is a great little tool for simplifying (2). Initialize a local repo with `git init`, make an initial commit, and `hub create` sends it to GitHub and creates the repo for you.

Re: Upload files to your repositories

#57
post #49

Fun fact: you can hack this right now by dragging and dropping a file (ie. image) into the issues submission box and then using that URL in your code to display images.

I'm confused, haven't you always been able to do that? The issue submission box has always allowed image uploads.

Yeah, this has been the workaround for a while. But when you see users doing stuff like this, it's a pretty strong signal that you need to think about supporting their intention with a dedicated feature.

Re: Upload files to your repositories

#59
post #32

All I want is a Wiki search.... pretty please. Wiki file uploads (images) at very minimum that aren't commited to git. The process now is to create an empty issue, drag the file over, copy the URL and paste it into the Wiki page.

I'd love to be able to search in branches. Especially on projects that commit to master and have release branches when they are between releases.

Well, as long as we're discussing search wish lists, I'd love case-sensitive search.
Post reply on HN