tl;dr: local, git, ssh, http, https. It does not and has never supported ftp, ftps or rsync.
NOTE: This is all as of v0.23.4.
The list of transport mechanisms libgit2 supports can be found in their "transport" section. These are high level transport algorithms. The particular network protocols are sub-transports.
- dummy
- local
- smart
- ssh-with-paths
Of those, we only care about local
and smart
(see transport.c). local
is for local files like file:///home/foo/some_project
. ssh-with-paths
is a wrapper around smart-ssh that lets you explicitly state which programs on the remote to use that you'll probably never use. Anything over the network uses smart
.
The "smart" protocol is one which expects the remote to be more than just a file server. Instead of having to do all the work to determine what objects are needed by requesting files and figuring it all out locally, it can call certain programs on the remote to do that work more efficiently. Here's a discussion of the smart vs dumb protocols.
Which smart network protocols libgit2 supports is in their "smart" section.
You can see this in more detail in transport.c.
As for the deprecated protocols ftp, ftps and rsync, libgit2 does not support them and you can see from their change log they never supported them. Also I don't know if libgit2 will support the dumb protocol.