English 中文(简体)
Xcode Source Control - Push local change inuck on Loading
原标题:Xcode Source Control - Push local changes stuck on Loading

我继续把这一问题放在X条码源控制上。 如果我检查一个前科,然后转回我最新的分支,那么,有时我不能再把我推向遥远的边远,因为它在装上负荷。

“enter

我确实找到了一些工作,以解决这个问题,如掩盖项目,或利用终点站推动地方变革,但在X条码中找到更好的解决办法。

我试图将我的比特账户重新连接起来,清理工作夹,更新X条码,重开一切,但毫无结果。

最佳回答

我最后设法解决这个问题。 在核对Xcode的先前建筑时,似乎会出现这一问题。 这将切断遥远的连接,从而使其难以装载。

To fix it first, push any uncommitted work using the terminal e.g. git push origin head:master

Go to the Source Navigator in Xcode and check that the push you just committed is in the remote folder. For me, it s my remotes>origin>master

然后,从分局删除总务;主管,然后检查;原地;总务局

The source control will now be able to push from Xcode. I hope that helps.

问题回答

It took a day to find out the easiest solution. You can re-install the Xcode but that s really time consuming and you can face the same problem again.

Just follow these steps to sort out the issue very fast:
1. Download and install Github Desktop.
2. Quit Xcode application and clear Xcode cache files.
3. Locate a local repository using Github desktop and click on "Fetch origin".
4. Make some changes, commit and push to your current working branch, it might be master branch.
5. Check latest commit message from your web browser, if you can see the latest commit then the problem has solved.
6. Just open the Xcode app, make some changes and try to commit and push. Great... Everything will work smoothly as it was before.

下载Github 页: 1

之后,项目......

this is an easy fix. take a copy of the working folder(just for caution). now check in the branch section in Xcode to see which is the current branch. hopefully, u won t see it has no current branch. next, see the name under the project, probably a mix of alphabets and numbers click on it and check if it has your latest commit. create a new branch from it and checkout. wolla!! now push it or merge it to the branch u wanted

我在看到我任满时,就解决这个问题。 我合并了我对主要分支的改动,一切都奏效。

解决办法是容易的,但必须查明造成这一问题的原因。 排队头部很可能在检查以前的承诺和转口时发生。

为了确认其为名人,你可以

  1. install git
  2. you should see a hidden .git file in your project directory. In the terminal, cd to this location
  3. run git -status. This will tell you if there is a detached head and a tag where the head is detached from
  4. you can also run git -log to check recent commits and the HEAD and press q to quit the log.

为了解决这个问题,你可以

  1. Stage all changes and commit to the local repository
  2. Create a new branch from the commit file where the HEAD is (identify the HEAD following the above steps). Repositories -> Branches -> choose the commit where the HEAD is and double click it -> select New Branch from "tag"Create new branch.
  3. Switch to this new branch. If you run git -status and git -log in the same directory, you can see the detached head is fixed, and the head is pointing to the new branch.
  4. Now, you can push the new branch to the remote repository as usual. The "loading..." text should be gone. If you d love to, you can merge and delete the new branch with another branch.




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签