简体   繁体   English

无法在 git 添加远程

[英]Cannot add remote in git

Please, help me.请帮我。 I cannot add remote in my git repository.我无法在我的 git 存储库中添加远程。 Where is my problem?我的问题在哪里?

git remote add https://github.com/ProgrammingHeroWC4/warehouse-management-client-side-Nmakhdum.git

usage: git remote add [<options>] <name> <url>
                          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
git remote add [<options>] <name> <url>

You need two params: name and url.您需要两个参数:名称和 url。

git remote add originNew https://github.com/ProgrammingHeroWC4/warehouse-management-client-side-Nmakhdum.git

You are not adding all the required params and git shows you the help details for the command.您没有添加所有必需的参数,git 向您显示该命令的帮助详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM