Reputation: 45350
When adding a git repo as a remote is the ssh:// prefix required? I see it all the time simply as:
git remote add [email protected]/path/here
Is the ssh:// prefix implied?
Upvotes: 1
Views: 1289
Reputation: 42354
Good question. It's a shorthand way of doing ssh but it's syntax is different than using SSH url protocol. Using the common shorthand above, for example, there's no space to specify a port (22 is assumed and most common anyways).
See my blog post for more examples of the various ways you can specify including using .ssh/config file: http://readystate4.com/2011/03/30/working-with-git-repos-on-non-standard-ports/
Upvotes: 1
Reputation: 1914
Git assumes SSH if you aren’t explicit
my source: http://progit.org/book/ch4-1.html
Upvotes: 1
Reputation: 15100
Git defaults to ssh protocol in the event no other is specified.
See
http://book.git-scm.com/3_getting_a_git_repository.html
Upvotes: 2