Foo Bar
Foo Bar

Reputation: 1892

Is it possible to have a Git repository on a local router with USB drive?

I have a router (AVM Fritzbox) with a USB drive connected to it. I can access the drive via a network path from my computers. I only have access to the web interface of the router and the filesystem of the drive. No root or ssh access (I don't want it anyways because if I screw up anything I can't access internet or phone anymore).

Is it possible that this drive acts as a Git repository without Git being installed on the router itself so that I can access the repository from all computers that are connected to the router?

Upvotes: 2

Views: 2695

Answers (1)

Yuval Adam
Yuval Adam

Reputation: 165282

It depends on how your "network path" actually works (though it sounds like Samba, or some other zeroconf protocol).

Git can only operate with HTTP(S) and SSH protocols as transports, unless you configure one of those properly, you can't use git on your router as a remote.

Read http://git-scm.com/book/en/Git-Internals-Transfer-Protocols for more info. (Also, this question has sort-of been answered before Using Git with a Samba shared folder).

Upvotes: 1

Related Questions