Created
January 29, 2024 10:21
-
-
Save D-Antonelli/f3f9641b85fc04e64102e58f0e56dfcc to your computer and use it in GitHub Desktop.
Xcode Source Control Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-----------------------------------------------------------------------------+ | |
| Xcode Source Control Cheat Sheet | | |
+-----------------------------------------------------------------------------+ | |
| [Setup & Clone] | | |
| π¦ Clone Repository: Intergate -> Clone | | |
| π Add Existing Remote: Source Control Navigator -> Repositories -> | | |
| -> Remotes -> Add Existing Remote | | |
+-----------------------------------------------------------------------------+ | |
| [Working with Changes] | | |
| π Commit Changes: Source Control Navigator -> your branch -> | | |
| Commit | | |
| π Pull Changes: Source Control Navigator -> Pull | | |
| πΌ Push Changes: Source Control Navigator -> Push | | |
| π Fetch Changes: Source Control Navigator -> Fetch | | |
| π Fetch & Integrate: Source Control Navigator -> Fetch and Integrate| | |
| β Discard Changes: Source Control Navigator -> Discard Changes | | |
+-----------------------------------------------------------------------------+ | |
| [Branching & Merging] | | |
| π Create Branch: Source Control Navigator -> New Branch | | |
| πΏ Checkout Branch: Source Control Navigator -> Check Out | | |
| βοΈ Delete Branch: Source Control Navigator -> Delete | | |
| π Merge Branch: Source Control Navigator -> Merge from Branch | | |
+-----------------------------------------------------------------------------+ | |
| [Conflict Resolution] | | |
| π¦ Resolve Conflicts: Manually edit files, then mark as resolved | | |
| using the Source Control navigator. | | |
+-----------------------------------------------------------------------------+ | |
| [Review & History] | | |
| π View Changes: Source Control Navigator -> select a commit | | |
| to see its details or view file diffs | | |
| π View History: Source Control Navigator -> Log | | |
+-----------------------------------------------------------------------------+ | |
| [Tips] | | |
| - Regularly commit to save progress and document changes. | | |
| - Frequently pull changes to stay up-to-date with the remote repository. | | |
| - Resolve conflicts as soon as they occur to avoid complex merges. | | |
| - Use the Source Control Navigator to manage repositories, branches, | | |
| commits, and more. | | |
+-----------------------------------------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment