You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/repos/git/share-your-code-in-git-xcode.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,13 +51,13 @@ Choose the option that matches your situation:
51
51
52
52
Create a local Git repo when you create a new project. Choose **Create Git repository on My Mac** when creating a new project.
53
53
54
-

54
+

55
55
56
56
### Existing projects
57
57
58
58
Create a local Git repo for your existing projects not in version control by going to **Source Control, Create Working Copy...** . Select the projects to add to the local Git repo and select **Create**. Xcode creates a Git repo for your code and adds a [commit](commits.md) with your project files.
59
59
60
-

60
+

61
61
62
62
## Create a new Git repo in Azure Repos
63
63
@@ -88,17 +88,17 @@ Now connect your local Xcode project to Azure Repos and push your code.
88
88
89
89
1. In Xcode, go to **Source Control** and select **[Project name] -- main**, then **Configure**.
90
90
91
-

91
+

92
92
93
93
2. Select **Remotes**, then select the  icon and choose **Add Remote**.
94
94
95
95
3. In the **Address** field, paste the Git clone URL you copied earlier. Select **Add Remote**, then **Done** to create the `origin` remote.
96
96
97
-

97
+

98
98
99
99
4. Go to **Source Control** > **Push**, enter the branch name on `origin` to push to (usually `main`), and select **Push**.
100
100
101
-

101
+

102
102
103
103
5. If prompted for credentials, choose your authentication method:
104
104
@@ -126,7 +126,7 @@ Now connect your local Xcode project to Azure Repos and push your code.
126
126
127
127
Select **OK** to complete authentication.
128
128
129
-

129
+

130
130
131
131
After successful authentication, Xcode [pushes](pushing.md) your project to Azure Repos. Your code is now available for your team to collaborate on.
0 commit comments