Live data from Hacker News

Show HN: git-peek – git repo to local editor instantly

github.com

31–39 of 39 posts

Re: Show HN: git-peek – git repo to local editor instantly

#31
post #15

I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good. You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe... It doesn't do any fancy tarball magic for Github links, but the shallow clon…

Why not just curl the raw file and ignore any git cloing at all?

Re: Show HN: git-peek – git repo to local editor instantly

#32
post #15

I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good. You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe... It doesn't do any fancy tarball magic for Github links, but the shallow clon…

Why not just curl the raw file and ignore any git cloing at all?

I think because we want to open the entire folder, how would that work?

Re: Show HN: git-peek – git repo to local editor instantly

#33
Can you update and commit?

I ask because I've been looking to improve my Shopify workflow. Buddy.works does the deploy to Shopify. But I'm trying to cut out the push. More or less changes + saves become commits, and then instantly deploy.

If not, perhaps someone can recommend something else?

Re: Show HN: git-peek – git repo to local editor instantly

#35
post #32

Earlier quoted context omitted.

Why not just curl the raw file and ignore any git cloing at all?

I think because we want to open the entire folder, how would that work?

some kind of httpfs mount? That would be seriously cool!

Re: Show HN: git-peek – git repo to local editor instantly

#37
post #20

Earlier quoted context omitted.

Does it work with private repos? I tried github1s with a private repo and it threw an authorization error.

Now it does. If you have the `GITHUB_TOKEN` environment variable set to a personal access token or if you happen to use the hubs github cli it will work

Cool, thank you!

Re: Show HN: git-peek – git repo to local editor instantly

#38

Earlier quoted context omitted.

some kind of httpfs mount? That would be seriously cool!

Oh. Yeah, ofc, my fault. I missed that.

I don't think it will work "as is" because github does not expose the directory structure in a way that httpfs understands out of the box. But some hacker around here could probably make an httpfs-github that does the job.
Post reply on HN