嗨,我是git hub的新手:我过去做过,但现在不知道怎么做。 我创建了一个存储库' https://github.com/kobosh/everyonehub' public它只包含自述文件;现在我想添加我的visual studio留言板项目,它位于c:\ users \ aouf \ messageboards
我尝试过open bash命令和cd到users / aouf / messageboards 然后git添加留言板 git commit -m" 7/2 from comnd" 看来这没关系我得到消息7文件改变.....等 然后我输入了git remote add origin https:/github.com/kobosh/everyonehub 我收到消息致命的远程起源已经存在.... 请帮助我完成第一步:如何将我的项目文件添加到我的git hub repo
答案 0 :(得分:0)
如果你克隆了空的'来自github的存储库(带有git clone
)。遥控器已经是你的github'远程存储库。只需使用git push origin master
将您的更改转移到github'服务器
你有2个选择。
第一个:
Copy/Past
您的文件进入克隆文件夹(c:\users\aouf\messageboards
)。 git push origin master
第二个:
您在本地项目文件夹cd
和git init
中的 git remote add origin https:/github.com/kobosh/everyonehub
。提交,推送,一切都会好的!
如果您想阅读官方文档,可以take a look here。
答案 1 :(得分:0)
您已经添加了文件,遥控器已经存在,现在您只需要推送文件即可。 http://git-scm.com/docs/git-push
git push origin master