创建了一个新的遥控器,Github 虽然是空的,但一切都是最新的
我做了:
git add remote [email protected]:username/name_of_github_repo.git
git push -u github master
它返回:
Branch master set up to track remote branch master from github.
Everything up-to-date
我检查了网站,没有上传任何内容,也没有添加分支。我缺少什么?
更新
我添加和删除了文件。承诺并推动他们。它返回了:
Mac-Users-MacBook-Pro:item macuser$ git push -u org master
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes, done.
Total 2 (delta 1), reused 0 (delta 0)
To [email protected]:username/Project.git
114aa31..adf1ece master -> master
Branch master set up to track remote branch master from org.
检查了该网站,仍然没有任何结果。
然后我尝试:
git push -all
返回:
everything-up-to-date
这个项目已经提交给 Heroku,这是我添加的新遥控器。也许这有什么关系?
I did :
git add remote [email protected]:username/name_of_github_repo.git
git push -u github master
It returns :
Branch master set up to track remote branch master from github.
Everything up-to-date
I check the website, and nothing has been uploaded no branches have been added. What am I missing?
UPDATE
I added and removed files. Commmited and pushed them. It returned this :
Mac-Users-MacBook-Pro:item macuser$ git push -u org master
Counting objects: 3, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes, done.
Total 2 (delta 1), reused 0 (delta 0)
To [email protected]:username/Project.git
114aa31..adf1ece master -> master
Branch master set up to track remote branch master from org.
Checked the site, still nothing.
Then I tried :
git push -all
That returned :
everything-up-to-date
This project has already been committed to Heroku and this is a new remote that I am adding. Possibly that has something to do with it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的主分支在那里,而不是其他分支吗?如果是这样,请尝试 git push --all 推送所有分支。
Is your master branch there and not other branches? If so, try
git push --all
to push all the branches.不知道如何或为什么,但这最终做到了:
Not sure how or why but this ended up doing it :