Related project that was posted to HN yesterday: github1s.com - just add "1s" to any github URL and it opens the repo in VS Code in your browser
Show HN: git-peek – git repo to local editor instantly
11–20 of 39 posts
Re: Show HN: git-peek – git repo to local editor instantly
#12Related project that was posted to HN yesterday: github1s.com - just add "1s" to any github URL and it opens the repo in VS Code in your browser
Re: Show HN: git-peek – git repo to local editor instantly
#13Nice idea but I have an issue. I'm on the new MBP with the M1 and I have code-insiders installed as it runs natively. So I tried the following: git peek https://github.com/ylukem/pin-go -e code-insiders It works, it downloads the repo, opens the editor but it immediately deletes it! Any idea how to fix this?
Re: Show HN: git-peek – git repo to local editor instantly
#14Re: Show HN: git-peek – git repo to local editor instantly
#15You 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 clone works fast enough for me - sub 3s on modestly sized repos (especially on non-github repos since github is fairly slow to clone/push/pull).
Re: Show HN: git-peek – git repo to local editor instantly
#16I read lots of code on GitHub, so I got really excited when I saw github1s ( https://news.ycombinator.com/item?id=26083919 ), but was disappointed when I saw that search doesn’t work ( https://news.ycombinator.com/item?id=26085540 ). So I hacked together `git peek` on Tuesday night. It works with any git repository, but uses GitHub’s API to be faster when it can.
I tried github1s with a private repo and it threw an authorization error.
Re: Show HN: git-peek – git repo to local editor instantly
#17I 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…
I’m glad you made something that works for more environments. But be careful, you may be accused of pushing more people to use git over mercurial.
Re: Show HN: git-peek – git repo to local editor instantly
#18I 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…
I think it’s a big stretch to say that providing tools which interoperate with product A and not product B is pushing anyone toward anything. By that logic everything is coercive. This is like when I was informed that I was ruining free computing by personally preferring a less free desktop OS for my own usage and encouraging others to choose what they prefer. I’m glad you made something that works for more environme…
If this had been published first, and github1s came along afterward to make it easier for users who don't set $EDITOR I'd be just as happy that it makes development more inclusive for all, not matter what the tools one prefers.
I'd love to see a mercurial version as well :)
Re: Show HN: git-peek – git repo to local editor instantly
#19Earlier quoted context omitted.
I think it’s a big stretch to say that providing tools which interoperate with product A and not product B is pushing anyone toward anything. By that logic everything is coercive. This is like when I was informed that I was ruining free computing by personally preferring a less free desktop OS for my own usage and encouraging others to choose what they prefer. I’m glad you made something that works for more environme…
Good points. For the record I wasn't trying to say that github1s is "ruining free computing", I was trying to convey the opposite. More diversity is good. If this had been published first, and github1s came along afterward to make it easier for users who don't set $EDITOR I'd be just as happy that it makes development more inclusive for all, not matter what the tools one prefers. I'd love to see a mercurial version a…
Re: Show HN: git-peek – git repo to local editor instantly
#20I read lots of code on GitHub, so I got really excited when I saw github1s ( https://news.ycombinator.com/item?id=26083919 ), but was disappointed when I saw that search doesn’t work ( https://news.ycombinator.com/item?id=26085540 ). So I hacked together `git peek` on Tuesday night. It works with any git repository, but uses GitHub’s API to be faster when it can.
Does it work with private repos? I tried github1s with a private repo and it threw an authorization error.