0

So, I made a few commits today, but they are not showing in the Xcode Repository.

The curious thing is that the version of the project changes after every commit, but it just shows yesterday's commit.

I made a test commit showing the progress.

Image 1 - Repository before commit

Image 2 - commiting

Image 3 - Repository after committing. (you can see the changed version of the project, but not on the repository.)

I have no idea what changed from yesterday.

Thanks in advance.

Image 1

Image 2

Image 3

0

1 Answer 1

2

You have a detached head, so your commits do not get onto main. To commit to main, first you need to be on main.

Sign up to request clarification or add additional context in comments.

3 Comments

I appreciate your time, but have no idea what detached head means. Looking into it right now!
It means that at some earlier time you checked out a commit rather than a branch. All your commits since then have gone into empty space. One more good reason to use the command line; it would have shouted "be careful" at you. Xcode hides the reality.
Thank you. You pointed me into the right direction to solve it!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.