I want to paste this here, because it's different enough from the other thread on Git mechanics.
Today I had a eureka moment and decided to FINALLY use that pesky USB port on my router. So I set out and figured out how to make it a Git Repository Server.
HOW TO SETUP A USB-ROUTER GIT SERVER:
Find a USB stick
- plug it into the router
- format it on the router (for best results with my cisco I did this)
Mount the drive/partition on developement computers
- I used the map a drive on Windows
- I used Ubuntu's walk through for my netbook XD (https://wiki.ubuntu.com/MountWindowsSharesPermanently)
Find a LOCAL Git Repo you want to push to the "Server" and type:
Windows: git clone --bare --shared --no-local <local-repo-name> MappedDrive:<local-repo-name>.git
Linux: git clone --bare --shared --no-local <local-repo-name> /path/to/mount/<local-repo-name>.git
Now you can Clone/Fetch/Push/Pull to your heart's desire
. (I have yet to figure out how to share with people external to my network, BUT I'll probably just SSH into a linux box and grab the files that way)
This is only helpful to those who have a router with a USB port. My router is old enough where it has no usb, but seeing as it still works, I have no reason to replace it. Forgot to add that I bookmarked this for when I do get a router with a usb port in it
.
More importantly, residential routers are generally pretty error prone, and shouldn't be relied upon for much. Nor should a USB drive. In any case, the distributed nature of Git discourages a "centralized" server. You should have several remote repositories that you push changes to. You can make use of online services like GitHub and BitBucket to take advantage of their data center solutions for added protection.
Arguably you could skip a router and just ssh everything everywhere, but to date I do not have a standalone piece of hardware serving. Thus, I decided to have a NAS/server on my network ^_^
Don't get me wrong: it is better than nothing else.
I would personally be afraid for it though. It's certainly a good stepping stone towards being competent with Git.
If the code is "open source" then you can host it on GitHub or BitBucket for free. AFAIK, BitBucket also accepts closed-source code for free, but do review it's terms of use because I don't use it.
As for Ubuntu: *facepalm*.
Agreed, and ultimately I won't use this long term. but it was a fun project for the day.
I use GitHub myself: https://github.com/phrasz
Also, please no *nix wars... I use Ubuntu b/c it's the sanest of all the "major distros" (Valve basically drove the nail in the coffin on that one...; and I learned on Breezy Badger first because fedora core never took). I prefer Arch and BSD, but they are a pain in the ass usually, and I can't easily put steam on them yet
P.S. I like unity; if I wanted archaic computing I'd boot to run level 3
That is funny because I actually left Ubuntu for Crunchbang Linux because Ubuntu kept corrupting every time I tried to update Kernels or software. Got rather annoying having to do fresh installs every couple of months for Ubuntu.
I use Ubuntu b/c it's the sanest of all the "major distros" (Valve basically drove the nail in the coffin on that one...; and I learned on Breezy Badger first because fedora core never took). I prefer Arch and BSD, but they are a pain in the ass usually, and I can't easily put steam on them yet
I'll avoid the Ubuntu debate because it's like stealing candy from a baby and I don't even like candy, but regarding Steam that much I can sort of understand. I had it working sufficiently in Debian unstable for a short period, but I guess they must have released a new version of Debian and opened the flood gates for unstable software or something because unstable became unstable and suddenly nothing worked. I haven't gotten around to getting another distro up with Steam yet.
I lied, I'll take a go at Ubuntu. I started with Ubuntu when I learned of Steam for Linux and that it was the official distro. I knew it would be different. I knew I'd have to make sacrifices. I was pressing on right up until I learned that the "main system menu" was sending everything I typed to the Internet implicitly and by default. No Linux distribution can do that and be respected. If I wanted that kind of invasion I'd use Microsoft's Windows or Apple's OS X. FUCK CANONICAL! As far as I'm concerned, they're just as crooked, even if they build their traps on otherwise free software.
...if I wanted archaic computing I'd boot to run level 3
I do.
Bitbucket is much better than Github if only because Python is better than Ruby. 
That and Github's pricing structure is terrible.
Apparently BitBucket's terms of use suck compared to GitHub's. If your software is open source then I don't really see any reason to use BitBucket. Who uses the Web-based interface anyway? Also arguably Ruby is better than Python, but I wouldn't choose either...? I wouldn't likely pay for hosting for "fruitless" software, but I digress. I don't know what their prices are, but you can most likely afford private hosting affordably (of course that's no guarantee so if either offers that then it's probably a better deal).
Apparently
FUD. 
Talk to Ruby fan-boys, then talk to Python developers. The difference is huge. I cannot stand to be associated with the former.
Github would cost my company over $400/month if Wikipedia is correct and we'd have to host it on our own servers. 125 private repos is nothing. Bitbucket is $25/month, and the service is just as good.
Talk to Ruby fan-boys, then talk to Python developers.
I'd rather not talk to ruby or python fan-boys kthx.
Github would cost my company over $400/month if Wikipedia is correct and we'd have to host it on our own servers.
You have to pay them to host your own hardware?? Wow.
Github would cost my company over $400/month if Wikipedia is correct and we'd have to host it on our own servers. 125 private repos is nothing. Bitbucket is $25/month, and the service is just as good.
I don't know what Wikipedia says, but GitHub supports private hosting with the most expensive plan being $200/mo, which gets 125 private repositories and unlimited "teams" (hosted by GitHub). Public repositories are unlimited.
What do you need that requires the enterprise GitHub solution installed on your own network that you don't need from BitBucket? I agree that BitBucket seems the more attractive deal for somebody that requires private repositories, but I'm not factoring terms of use or reliability promises (which I don't know about) into that statement.
125 private repositories is not enough. 
The only other listed option is hosting the GitHub software on your own equipment for the price I mentioned. Or of course, paying even more money by distributing across different accounts. None of that is reasonable.
With BitBucket's per user model, we can create repos for everything, and not worry about having to archive them onto a secondary place and delete them. It's a much more reasonable model, because users are the primary factor of how much resources you use. The number of repositories is largely irrelevant because disk space is cheap and a single person can only realistically work on a few at a time.
When GitHub blogs about how awesome it is that they created font-icons, I just laugh thinking "Great, that's how they spend their customers' money."
1. Serialize ALL THE DATA
2. paste to pastebin!
3. Use Twitter to Point to latest versions
XD
WTF is that propaganda shit? I even followed some links and there's more shitty propaganda from the same guy. So GNU now needs this kind of stuff? Pitiful
.
Yup he's like that:
http://stallman.org/stallman-computing.html
BUT even people that seem crazy do tend to have lightning strikes of inspiration.
Update:
This idea is even more massive when you use Google Drive's Installer: https://tools.google.com/dlpage/drive
For you pessimists out there add en encrypted folder first
WTF is that propaganda shit? I even followed some links and there's more shitty propaganda from the same guy. So GNU now needs this kind of stuff? Pitiful
.
Protip: That is Richard Stallman, the founder of GNU, and arguably the originator of the free software movement! That was always there and every bit of it is valid. He aims for a world where free [as in beer] [as in speech][1] software is the norm. Ubuntu really is a plague upon free software. Nothing he says in that article is unwarranted. According to the history books, GNU exists because Richard Stallman recognized how harmful restrictive licensing is to software, and chose to take a stand. Ubuntu is basically the worst Linux-based OS that you could choose in terms of freedoms. It might be easier to use, but that is likely only due to the developer selling its soul to the Devil(tm) and getting in bed with all of the non-free vendors. There's a very good reason that other distributions don't do what Ubuntu has. Other distributions respect the user.
He aims for a world where free[as in beer] software is the norm.
I'm pretty sure he's for free as in free-to-modify. He charged a nominal fee for tapes of his software back in the stone ages.
I'm pretty sure he's for free as in free-to-modify. He charged a nominal fee for tapes of his software back in the stone ages.
Yes, forgive me. I'm tired/sick/intoxicated and evidently not fully conscious of what I'm saying. I guess I just have beer on the brain. That should have been "free[as in speech]". Free as in beer is ideal, but understandably nobody can work for free if they expect to pay their bills. The most important thing is free as in speech, and in general respecting users. Ubuntu implicitly spying on its users by default is not respecting them at all.
Thanks for catching my mistake, Arthur.
He might be right about Ubuntu, but Stallman still seems like a paranoid, arrogant and dirt from his foot eating bastard.
His idea of freedom is what I'd define as tyranny.
a government in which absolute power is vested in a single ruler; especially : one characteristic of an ancient Greek city-state
That's what his idea of freedom is?
GPL is the opposite of that. People are given freedom to modify, rather than all of the power being vested in a sole developer or developers.
He helps balance out the nutjobs on the other end of the scale. I wonder if MS is still paying for this farce?
To be explicit, the GPL guarantees 4 freedoms:
Freedom to use without restriction.
Freedom to modify without restriction.
Freedom to redistribute (share) without restriction.
Freedom to distribute modified copies (share changes) without restriction.
That is what GNU, GPL, and the FSF, which we all have Richard Stallman to thank for (among many others), is all about.
Just for shits and giggles, ED has also an article about RMS.
That site is accurate to the n'th degree, isn't it?
He seems such a nice guy
It doesn't take special talents to reproduce--even plants can do it.
On the other hand, contributing to a program like Emacs takes real
skill. That is really something to be proud of.
It helps more people, too.
Speaking of RMS, I ordered this last week: http://shop.fsf.org/product/signed-rms-photo-print/
Think I'll hang it on a wall in the office.
I don't tend to think of a lot of things as "money wasted". But that right there is one of them.
That site is accurate to the n'th degree, isn't it?
But that right there is one of them.
Well, I donated a lot more money to them than that... and it's one of the very few organizations I think it's worth donating to (unlike any of those "help children in africa" scams).
Yeah, but $100? Maybe it only seems like a lot of money to me though.