L
L
Lici2015-03-13 19:53:46
Objective-C
Lici, 2015-03-13 19:53:46

How to use GIT version control in Xcode?

It seems like when I created the project, I chose "Use GIT on my Mac".
If I break my program and want to "roll back to the day before yesterday" - how do I do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rapkin, 2015-03-13
@Lici

you only initialized your repository so that you can return to the state (for example, the day before yesterday), you need to commit (like a snapshot of the current state) at that moment (the day before yesterday). To commit, select the menu item Source Control -> Commit ,3efb50fd907c4c4ea3f36bb7909b8882.png a window will appear where changes in the code will be visible, and below there will be a field for entering a commit message. Here you need to enter a meaningful short text that will indicate the state of the code (what features have been added, what has been fixed, etc.). Then just confirm your commit and a new entry will appear in the history ( Source Control -> History).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question