简体   繁体   English

无法推送到Git存储库

[英]Can't Push to Git Repository

I am trying to push my recent commits to a Git repository that I have set up on Bitbucket, and for some reason it never pushes. 我试图将我最近的提交推送到我在Bitbucket上设置的Git存储库,并且由于某种原因它从未推动过。

Xcode just gets stuck on the screen saying "Pushing Changes..." and "Preparing to Push Changes..." but it never completes. Xcode刚刚停留在屏幕上,说“推动改变......”和“准备推动改变......”但它永远不会完成。 Then ends with "The working copy of 'Master' is currently up to date." 然后结束于“'Master'的工作副本目前是最新的。”

But it's not. 但事实并非如此。

I have made changes. 我做了改变。

Also tried adding more commits, but that didn't work either. 还尝试添加更多提交,但这也无效。

Any suggestions? 有什么建议?

Git并不总是与Xcode一起工作,通常是因为Xcode生成的垃圾文件(例如xcworkspace等),而且它一般都是非常错误的,所以我只想尝试从命令行而不是通过Xcode(它也应该给你)一个更详细的错误消息,如果它不起作用)。

尝试做一个git add然后git commit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM