创建了一个新的遥控器,Github 虽然是空的,但一切都是最新的

发布于 2025-01-02 15:43:01 字数 1188 浏览 0 评论 0原文

我做了:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云柯 2025-01-09 15:43:01

你的主分支在那里,而不是其他分支吗?如果是这样,请尝试 git push --all 推送所有分支。

Is your master branch there and not other branches? If so, try git push --all to push all the branches.

故人的歌 2025-01-09 15:43:01

不知道如何或为什么,但这最终做到了:

git push -u org master:org

Not sure how or why but this ended up doing it :

git push -u org master:org
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文