I'm trying to find information on whether git's various repository URL protocols (http / https / git / ssh) all have standards for specifying subdirectories.
For example a subdirectory in HTTP(S) is like this:
full: `https://stackoverflow.com/questions/asdf`
base: `https://stackoverflow.com`
subdirectory: `/questions/asdf`
Do the other protocols all also have an equivalent? For example is this "valid"?
full: `https://github.com/Foo/bar/another`
base: `https://github.com`
subdirectory: `Foo/bar/another`
full: `git@github.com:Foo/bar/another`
base: `git@github.com`
subdirectory: `Foo/bar/another`
full: `git://github.com:Foo/bar/another`
base: `git://github.com`
subdirectory: `Foo/bar/another`
(Not sure what the real syntax for the examples above are, it's just an example of what a good answer to this question should be)
Disclaimer
This question is specifically related to whether or not the listed protocols support a subdirectory syntax. This question does not relate to whether or not these URLs are cloneable via git (there's already several questions on stackoverflow about that. This question is about what is valid URI syntax)
Also, if you have links to relevant documentation, that'd be much appreciated.