News for hackers. Stuff that matters.
Re:Show HN: I'm tired of sharing code using PasteBin and Sla... by moeen-mahmud on Friday January 03, 2025 @02:57PM (#42588926)
Amazing idea!! It starts making me think differently. Thank you so much for sharing this. Could you tell me more about storing and sharing the "gist/pastes" for later use? For example the link validity, or share only with a certain group of people?
Re:Show HN: I'm tired of sharing code using PasteBin and Sla... by tonymet on Friday January 03, 2025 @03:05PM (#42589002)
I use them to share the entire experiment with other developers , so they can clone the gist and have the exact copy of what I have

e.g. https://gist.github.com/tonymet/d5df33b6a5003e1281c458a2d58d...

Re:Show HN: I'm tired of sharing code using PasteBin and Sla... by tonymet on Friday January 03, 2025 @03:08PM (#42589016)
gist's "clone with ..." feature is very powerful. It's a unique and (from what I can tell) permanent remote that you can push to. it has some restrictions on naming and file content.

but i would love to see your product run with "clone with..." but make it work for all your experiments

I just wrote up a guide on doing something similar with subtree and a large "experiments" repo .

https://dev.to/tonymet/how-to-put-everything-in-git-2b3d

Re:Show HN: I'm tired of sharing code using PasteBin and Sla... by moeen-mahmud on Friday January 03, 2025 @03:29PM (#42589185)
Just read your post. Honestly, I didn't think that way for sharing code. Thank you so much for this! Bookmarked.