2015-10-07 53 views
1

我是新来webdeveloping之类的东西,我想我的HTML和CSS文件推送到github上,但我做git commitgit push origin master后,我得到这个错误:Git的推问题

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

很抱歉,如果这是一个愚蠢问题,但我是新的,我无法在网上找到答案。我查看了几个教程,并没有成功将我的页面推送到GitHub。我已经设法使用本教程更新我的README.md文件:http://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository

+0

请检查下面给出的答案,谢谢。 –

回答

1

GitHub documentation,您需要将您origin配置为指向GitHub的远程:

git remote add origin https://github.com/user/repo.git 
# Set a new remote 

git remote -v 
# Verify new remote 

更换https://github.com/user/repo.git的实际路径到GitHub上的远程存储库。