Skip to content

Instantly share code, notes, and snippets.

@D-Antonelli
Created January 29, 2024 10:21
Show Gist options
  • Save D-Antonelli/f3f9641b85fc04e64102e58f0e56dfcc to your computer and use it in GitHub Desktop.
Save D-Antonelli/f3f9641b85fc04e64102e58f0e56dfcc to your computer and use it in GitHub Desktop.
Xcode Source Control Cheat Sheet
+-----------------------------------------------------------------------------+
| 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