Show HN: git-peek – git repo to local editor instantly
1–10 of 39 posts
Re: Show HN: git-peek – git repo to local editor instantly
#2Re: Show HN: git-peek – git repo to local editor instantly
#3Are you the author? Else why are you posting it as a Show HN?
Re: Show HN: git-peek – git repo to local editor instantly
#4So 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
#5Nice 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?
git peek is not a faster alternative to git clone. It’s for quickly reading other people’s code without needing to keep it around for writing or updating.
That being said, I could make it not delete the code after the editor closes and keep it somewhere. It just won’t have access to the git tree and other things you’d expect.
I could add a flag like —keep that doesn’t delete it and let’s you pass a place to put it.
Re: Show HN: git-peek – git repo to local editor instantly
#6Nice 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?
Author here — this is actually not a bug, but a deliberate design decision (so long as you meant, when the editor closes). I’m sorry for the confusion. git peek is not a faster alternative to git clone. It’s for quickly reading other people’s code without needing to keep it around for writing or updating. That being said, I could make it not delete the code after the editor closes and keep it somewhere. It just won’t…
Re: Show HN: git-peek – git repo to local editor instantly
#7Does this work with any git repo? Else, shouldn't this be called github-peek? Are you the author? Else why are you posting it as a Show HN?
When it’s a regular git link, it does a partial clone and opens in your editor.
Re: Show HN: git-peek – git repo to local editor instantly
#8github1s.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
#9Re: Show HN: git-peek – git repo to local editor instantly
#10Does this work with any git repo? Else, shouldn't this be called github-peek? Are you the author? Else why are you posting it as a Show HN?
All of the above can be easily seen by looking at the provided link for about five seconds.