2015-02-02 19:43:51 -05:00
|
|
|
# GitLab Web Editor
|
|
|
|
|
2015-02-03 14:05:20 -05:00
|
|
|
In GitLab you can create new files and edit existing files using our web editor.
|
|
|
|
This is especially useful if you don't have access to a command line or you just want to do a quick fix.
|
|
|
|
You can easily access the web editor, depending on the context.
|
|
|
|
Let's start from newly created project.
|
|
|
|
|
|
|
|
Click on `Add a file`
|
|
|
|
to create the first file and open it in the web editor.
|
2015-02-02 19:43:51 -05:00
|
|
|
|
|
|
|
![web editor 1](web_editor/empty_project.png)
|
|
|
|
|
2015-02-24 13:24:30 -05:00
|
|
|
Fill in a file name, some content, a commit message, branch name and press the commit button.
|
2015-02-03 14:05:20 -05:00
|
|
|
The file will be saved to the repository.
|
2015-02-02 19:43:51 -05:00
|
|
|
|
|
|
|
![web editor 2](web_editor/new_file.png)
|
|
|
|
|
2015-02-03 14:05:20 -05:00
|
|
|
You can edit any text file in a repository by pressing the edit button, when
|
|
|
|
viewing the file.
|
2015-02-02 19:43:51 -05:00
|
|
|
|
|
|
|
![web editor 3](web_editor/show_file.png)
|
|
|
|
|
2015-02-03 14:05:20 -05:00
|
|
|
Editing a file is almost the same as creating a new file,
|
2015-02-24 13:24:30 -05:00
|
|
|
with as addition the ability to preview your changes in a separate tab. Also you can save your change to another branch by filling out field `branch`
|
2015-02-02 19:43:51 -05:00
|
|
|
|
|
|
|
![web editor 3](web_editor/edit_file.png)
|