I'm using win 7 with git bash integrated into the windows command prompt. I have a repo where I'm trying to add another remote. I do this:
git remote add myserver ssh://git@subdomain.domain.com/blabla.git sources
Now git responds with:
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
--tags import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=<push|fetch>]
set up remote as a mirror to push to or fetch from
I find that puzzling since I thought this is what I had done. Any suggestions?
The word sources
at the end is causing the problem. The documentation you cited shows nothing after <url>
. If it's a folder name, just attach it to the URL:
git remote add myserver ssh://git@subdomain.domain.com/sources
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.