Skip to content

Commit 24e8bb5

Browse files
committed
Merge pull request #308 from Thannoy/master-review/file-remote-unsafe
file:// repos are often easier to damage by mistake
2 parents 7ac82c5 + f5c8a1b commit 24e8bb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/04-git-server/sections/protocols.asc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ If you and a co-worker are working on the same project and they want you to chec
5656
The cons of this method are that shared access is generally more difficult to set up and reach from multiple locations than basic network access.
5757
If you want to push from your laptop when you're at home, you have to mount the remote disk, which can be difficult and slow compared to network-based access.
5858

59-
It's also important to mention that this isn't necessarily the fastest option if you're using a shared mount of some kind.
59+
It's important to mention that this isn't necessarily the fastest option if you're using a shared mount of some kind.
6060
A local repository is fast only if you have fast access to the data.
6161
A repository on NFS is often slower than the repository over SSH on the same server, allowing Git to run off local disks on each system.
6262

63+
Finally, this protocol does not protect the repository against accidental damage. Every user has full shell access to the "remote" directory, and there is nothing preventing them from changing or removing internal Git files and corrupting the repository.
64+
6365
==== The HTTP Protocols
6466

6567
Git can communicate over HTTP in two different modes.

0 commit comments

Comments
 (0)