TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Private Git Repository on Any Computer

65 pointsby akras14about 8 years ago

11 comments

tomc1985about 8 years ago
It pains me to think that people nowadays need to be reminded that many cloud services were&#x2F;are originally available locally, for unlimited use. Amazon&#x27;s whole services model seems to revolve around converting on-prem services into cloud offerings, even.<p>Modern computing is just like the chemicals industry now. You can clean your whole house with just a few simple ingredients (only one is a product -- water, citrus, baking soda, vinegar, mud, and bleach), but how many of us actually know that? Instead we go to the store and pick up Windex, Drain-o, and everything else, because we paid more attention to advertisements and marketing droids than the world around us.<p>The damage that modern technology has done to human resourcefulness makes me weep
评论 #13786852 未加载
评论 #13786616 未加载
评论 #13786850 未加载
评论 #13788505 未加载
评论 #13786851 未加载
majewskyabout 8 years ago
The point of Github is not so much the repo hosting part (well, that too). The point of Github is<p>- the nice web UI for browsing code<p>- the social features (issues, pull requests, reviews)<p>That&#x27;s why, after years of Gitolite (i.e. nearly as bare Git hosting as the submission discusses), I&#x27;ve switched to Gogs last year.
评论 #13786378 未加载
评论 #13787096 未加载
评论 #13786001 未加载
评论 #13787102 未加载
评论 #13786148 未加载
asidialiabout 8 years ago
I built a free lightweight service that automates this, and provides a nice CLI tool for interacting with it. Right now it deploys to free hosting on the gitup servers. Repo auth is handled via git-ssh verification with offloaded key storage and individual user roles&#x2F;permissions.<p><a href="https:&#x2F;&#x2F;gitup.io" rel="nofollow">https:&#x2F;&#x2F;gitup.io</a><p><a href="https:&#x2F;&#x2F;npmjs.com&#x2F;package&#x2F;gitup-cli" rel="nofollow">https:&#x2F;&#x2F;npmjs.com&#x2F;package&#x2F;gitup-cli</a><p>Some commands include:<p>- `gitup login &lt;username&gt;` : authenticates&#x2F;registers user<p>- `gitup new &lt;repo-name&gt;` : creates a new repo at gitup.io&#x2F;username&#x2F;repo-name<p>- `gitup add-user &lt;repo-name&gt; &lt;username&gt;` : share a repo with another gitup user<p>Repos are private by default. Right now this is a very basic free service but hope to expand the offering quickly including self hosting the repo storage, the key store, web interface, etc.<p>Would love to know if you check it out and come across a bug or have any feedback for me! Thank you.
评论 #13787830 未加载
评论 #13788632 未加载
JustSomeNobodyabout 8 years ago
Wait, so people use git and they don&#x27;t know this?<p>How?
评论 #13787219 未加载
评论 #13788618 未加载
评论 #13787287 未加载
Zikesabout 8 years ago
I recently did something like this as well, and one thing I particularly missed was the convenience of quickly creating the remote repository, so I made this bash script: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;zikes&#x2F;926fd8bb72f9856776e309fba45f07cc" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;zikes&#x2F;926fd8bb72f9856776e309fba45f07...</a><p>An interesting thing about git, if there&#x27;s an executable somewhere in your $PATH and it starts with git-, then it becomes a &quot;git command&quot;. So in my case, I named it git-make-remote.sh, and I can execute it via &quot;git make-remote myreponame&quot; and it will SSH to my private git server and create the associated remote repo.
divbitabout 8 years ago
I have essentially the same tutorial on my readme here: <a href="https:&#x2F;&#x2F;github.com&#x2F;divbit&#x2F;grimoire" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;divbit&#x2F;grimoire</a> except I&#x27;ve included a step where Ubuntu uncomplicated firewall is setup. I wonder if anyone has any suggestions on other basic security measures that should be taken for a private git repo?
评论 #13787215 未加载
ryd994about 8 years ago
I&#x27;ve git all my local scripts and snippets for years. Good to rollback sometimes. I have a 2010 laptop running behind TV. Any SSH host can be git server. And it hosts my owncloud. In purpose of rolling back binary documents, it works much faster and frequently.
rkcfabout 8 years ago
I built a docker container that can serve as a quick plug and play ssh over git repository: <a href="https:&#x2F;&#x2F;github.com&#x2F;rkcf&#x2F;docker-git-server" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rkcf&#x2F;docker-git-server</a>
viraptorabout 8 years ago
Even if you need issues, you can still use apps like gitissius that will store the data in your repo <a href="https:&#x2F;&#x2F;github.com&#x2F;glogiotatidis&#x2F;gitissius&#x2F;blob&#x2F;master&#x2F;README.org" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;glogiotatidis&#x2F;gitissius&#x2F;blob&#x2F;master&#x2F;READM...</a><p>For PRs there&#x27;s <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;git-appraise&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;git-appraise&#x2F;blob&#x2F;master&#x2F;README.md</a>
jsilenceabout 8 years ago
Those who are missing issue tracking with this approach might want to consider using Fossil (<a href="https:&#x2F;&#x2F;www.fossil-scm.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.fossil-scm.org&#x2F;</a>) which includes a wiki and issue tracking in one simple DSCM system.
评论 #13793309 未加载
ttdabout 8 years ago
For a lot of my non-critical work that I want to share between computers (e.g. desktop and laptop), I commit to various git repositories in my Dropbox. It&#x27;s very convenient, and allows me to share my git repos as seamlessly as documents.
评论 #13788167 未加载