无法推送到Git仓库 [英] Can't Push to Git Repository

查看:103
本文介绍了无法推送到Git仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我最近提交的内容推送到我在Bitbucket上设置的Git存储库中,并且出于某种原因它永远不会推送。 Xcode刚被卡住在屏幕上显示推送更改...和准备推送更改...,但它从未完成。



但它不是。



我做了修改。



还尝试添加更多提交,但那也不起作用。



任何建议?

解决方案

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


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.

Xcode just gets stuck on the screen saying "Pushing Changes..." and "Preparing to Push Changes..." but it never completes. Then ends with "The working copy of 'Master' is currently up to date."

But it's not.

I have made changes.

Also tried adding more commits, but that didn't work either.

Any suggestions?

解决方案

Git doesn't always work with Xcode, usually because of the crap files Xcode generates (eg xcworkspace etc), and it's pretty buggy in general, so I would just try pushing from the command line instead of through Xcode (which should also give you a more detailed error message if it doesn't work).

这篇关于无法推送到Git仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆