admin管理员组文章数量:1635823
最近由于疫情的原因,需要在家办公,我的老式电脑下载了各种办公需要的工具,在git的使用上遇到了一些问题,过程记录一下吧
git init
git clone '当前项目的git地址'
然后根据提示操作,输入了usename和password,继续
git add .
git commit -m ''
git push
一直OK,到了push的时候报错了
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
and then push using the remote name
git push <name>
解决办法:
git remote add origin 'http://git.....'
git push -u origin master
我自己建的项目,是master身份,所以最后一句命令的远程分支名就写了master,具体应情况而定,
到此就成功了!
版权声明:本文标题:git 创建项目第一次上传文档出现fatal: No configured push destination. Either specify the URL from the command-line 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1729215613a1190395.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论