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/07-Features/04-git.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,58 +5,45 @@ title: Git
5
5
import React from 'react';
6
6
import VideoPlayer from '@site/src/components/Video/player';
7
7
8
+
## Getting Started with Git in Phoenix Code
9
+
8
10
**Phoenix Code** includes built-in Git support, allowing you to manage version control directly within the editor. Git can be accessed from the toolbar icon or the File menu in the menu bar.
> To use Git features inside Phoenix Code, ensure Git is installed on your computer. [Download Git](https://git-scm.com/downloads)
13
15
14
-
Note: *For projects without an existing Git repository, the Git icon won’t appear by default. To initialize or connect a Git repository, use the File menu to set up Git for your project.*
15
-
16
-
The Git Panel in **Phoenix Code** provides a simple interface for managing version control. It allows you to track changes, commit updates, interact with remote repositories and many more without leaving the editor.
To initialize a Git repository in a project that doesn’t already have one, click on `File > Git > Init`. This will set up Git for your current project. After initialization, the Git icon will appear in the toolbar, indicating that version control is active.
> This will open the Quick Start project dialog box, which offers various options. [Read more](../05-quick-start-project.md) about Quick Start project here.
39
25
40
-
> This will open the Quick Start project dialog box, with various options. [Read more](../05-quick-start-project.md) about Quick Start project here.
41
-
42
-
2. Select the `Get from Git` button.
26
+
2. Select `Get from Git`.
43
27
44
28

45
29
46
-
A dialog box will appear asking you to enter the `Git Clone URL` and the `Location` where you want to clone the repository. Fill in the URL of the project and select the location on your machine.
30
+
3. Enter the *Git Clone URL* and choose a *location*to save the project.
47
31
48
32

49
33
50
-
3. Click on `Create Project`. This will clone the repository to the location you specified.
34
+
4. Click `Create Project`. The repository will be cloned to the specified location.
35
+
51
36
37
+
### Alternative Cloning Method
52
38
53
-
### Alternative Method
39
+
You can also clone a repository through the menu:
54
40
55
-
Go to `File > Git > Clone`. A dialog will appear, prompting you to enter the URL of the repository you wish to clone.
41
+
1. Go to `File > Git > Clone`.
42
+
2. Enter the repository URL in the dialog that appears.
In the Clone Repository dialog, clicking on `More Options` expands additional settings for authentication.
62
49
@@ -69,6 +56,19 @@ In the Clone Repository dialog, clicking on `More Options` expands additional se
69
56
*If cloning fails due to authentication issues (e.g., timeout errors), you might need to manually provide your credentials.*
70
57
71
58
59
+
### Initializing a Git repository
60
+
61
+
To initialize a Git repository in a project that doesn’t already have one, click on `File > Git > Init`. This will set up Git for your current project. After initialization, the Git icon will appear in the toolbar, indicating that version control is active.
> Note: *For projects without an existing Git repository, the Git icon won’t appear by default. To initialize or connect a Git repository, use the File menu to set up Git for your project.*
66
+
67
+
Once Git is set up, the Git Panel provides a user-friendly interface to manage version control. You can track changes, commit updates, interact with remote repositories, and more—all within the editor.
0 commit comments