繁体   English   中英

我正在尝试通过 git(命令行)从我的电脑中提取一个项目到 github。 但我无法从 github 获得链接

[英]I'm trying to pull a aproject from my pc via git (command line) to github. but I can't get the link from github

在我的电脑上,我已经做了这些步骤:

git init 
git add "the directory name"
git commit -m "****"

github截图

您看到的是拉取请求页面,而不是项目页面本身。

考虑一下,例如, clayakers/Dasmoto-Project :(用您的 GitHub 用户名替换clayakers):这是您可以找到 URL(HTTPS 或 SSH)使用的地方:

网址

假设 GitHub 存储库仍然为空,您需要执行以下操作:

cd /path/to/local/repo
git remote add origin https://github.com/clayakers/Dasmoto-Project
git push -u origin/master

暂无
暂无

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

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