Xcode repository indicators meanings

前端 未结 5 531
终归单人心
终归单人心 2020-12-15 09:14

I wonder what these shortcuts mean and since I already can figure out that \"shortcut\" is not the right word for it, I don\'t even know what to google so I\'ll just strike

5条回答
  •  心在旅途
    2020-12-15 09:32

    Maybe you ended up here because you merged two branches together in Xcode and got a bunch of exclamation marks (!) as a result and wonder what they mean, what the actual problem is, and how you get rid of them? If so, do the following:

    1. Navigate to your projects folder and open it in Terminal (easiest by dragging the folder to the Terminal app icon).

    2. Type git push.

    3. Restart Xcode.

    (You may get a warning in 2 if you have uncommitted changes, in that's case just type git commit -m "Your commit comment" and then type git push again.)

    The problem here is just a miscommunication between Xcode and the Git repository, and Xcode probably can't work out whether the marked files have been pushed or not.

    Generally, my experience is that for all inexplicable problems with the source control in Xcode (missing files, not under source control warnings etc) it's best to handle them directly in the project folder with Terminal. Start by typing git status and you'll (mostly) get a quite clear explanation of what's the problem and how to solve it. Good luck!

提交回复
热议问题