无法在github上推动存储库
我试图将本地GIT存储库推向GitHub,但没有成功。
到目前为止,我遵循的步骤是:
- 使用
git Init。
- git add。
- 使用
提交-m“一些文本”
- 在GitHub上创建新存储库
- ,通过
git远程添加添加https://github.com/myusername/myreponame
- 使用
git push -U Origin main
进行推动,
这是我应该能够在浏览器中看到文件的地方。但是,当我在Github上刷新我的存储库页面时,什么都没有改变。
I try to push my local git repository to github with no success.
The steps I followed so far are:
- Create the repository in git with
git init .
- Add a file to the staging area using
git add .
- Make a commit using
git commit -m "some text"
- Create new repository on github
- Establish connection with github via
git remote add origin https://github.com/myusername/myreponame
- Make a push with
git push -u origin main
At this point is where I should be able to see my files in the browser. But when I refresh my repository page on github, nothing has changed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要运行
git push origans master
以推动github远程存储库中的更改,因为您在Master
您本地的分支You need to run
git push origin master
to push the changes in your github remote repo Cause You're onmaster
branch in your local