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/05-Workspace/06-git.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,14 @@ You can also discard all changes made to all files at once by clicking the three
96
96
97
97
98
98
99
+
## Open All Changed Files
100
+
101
+
To open every changed file at once, click the three dots at the top-right of the Git panel and select `Open All Changed Files`.
102
+
103
+
Every modified and untracked file opens in the editor. Deleted files are skipped, since they no longer exist on disk. Untracked files are also skipped if you turned on `Hide untracked files in panel`.
104
+
105
+
Files that are already open stay as they are. If the file you are viewing is one of the changed files, Phoenix Code keeps you on it. Otherwise it takes you to the first changed file.
106
+
99
107
## Navigate Git Changes
100
108
101
109
When viewing a file with multiple Git changes, you can use the Next Change and Previous Change buttons to quickly move between modifications.
@@ -258,6 +266,12 @@ This lets you inspect changes directly within the editor.
258
266
259
267
## Branch
260
268
269
+
The Git branch is shown in two places: in the sidebar, and on the Git panel toolbar. Clicking either one opens the same branch dropdown, next to the button you clicked.
270
+
271
+
<!-- TODO: PLUTO - add image here showing the branch button in the git panel toolbar -->
272
+
273
+
> The branch button is hidden when the Git panel is too narrow to fit it. The sidebar always shows the branch name.
274
+
261
275
### Creating a new branch
262
276
263
277
To create a new branch in Git, click on the `main > Create new branch...` button in the sidebar. The name shown (e.g., main) represents your current branch, so if you're on a different branch, it may display another name.
@@ -355,6 +369,7 @@ Here are the available options in Git panel:
355
369
***Show Git Panel**: Toggles the visibility of the Git panel in the interface.
356
370
***Refresh Git**: Updates the Git panel to reflect the latest changes in the repository.
357
371
[Read more](#refresh-panel) about refresh git.
372
+
***Open All Changed Files**: Opens every modified and untracked file in the editor. [Read more](#open-all-changed-files) about opening all changed files.
358
373
359
374
### Navigation options
360
375
***Go to Next Git Change**: Moves the cursor to the next Git-tracked change in the file.
0 commit comments