| stage | group | info | description |
|---|---|---|---|
Create |
Remote Development |
To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments |
Use the Web Editor to create, upload, and edit text files directly in the GitLab UI. |
DETAILS: Tier: Free, Premium, Ultimate Offering: GitLab.com, Self-managed, GitLab Dedicated
You can use the Web Editor to make changes to a single file directly from the GitLab UI. To make changes to multiple files, see Web IDE.
Your primary email address is used by default for any change you commit with the Web Editor.
To create a text file in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Go to the directory where you want to create the new file.
- Next to the directory name, select the plus icon ({plus}) > New file.
- Complete the fields. To create a merge request with your changes, enter a branch name that's not your repository's default branch.
- Select Commit changes.
To create a text file from a template in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Go to the directory where you want to create the new file.
- Next to the directory name, select the plus icon ({plus}) > New file.
- In Filename, enter a name that GitLab provides a template for:
.gitignore.gitlab-ci.ymlLICENSEDockerfile
- From the Apply a template dropdown list, select a template.
- Complete the fields. To create a merge request with your changes, enter a branch name that's not your repository's default branch.
- Select Commit changes.
To edit a text file in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Go to the file you want to edit.
- Select Edit > Edit single file.
- Complete the fields. To create a merge request with your changes, enter a branch name that's not your repository's default branch.
- Select Commit changes.
- Introduced in GitLab 15.6.
To preview a Markdown file in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Go to the file you want to preview.
- Select Edit > Edit single file.
- Select the Preview tab.
You can see a live Markdown preview alongside your content.
To close the preview panel, select the Write tab.
To link to single or multiple lines in the Web Editor, add hash information to the filename segment of the URL. For example:
MY_FILE.js#L3highlights line 3 inMY_FILE.js.MY_FILE.js#L3-10highlights lines 3 to 10 inMY_FILE.js.
When you edit a file, you can also link to a single line by selecting a line number.
To upload a file in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Go to the directory where you want to upload the file.
- Next to the directory name, select the plus icon ({plus}) > Upload file.
- Complete the fields. To create a merge request with your changes, enter a branch name that's not your repository's default branch.
- Select Upload file.
To create a directory in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Go to the directory where you want to create the new directory.
- Next to the directory name, select the plus icon ({plus}) > New directory.
- Complete the fields. To create a merge request with your changes, enter a branch name that's not your repository's default branch.
- Select Create directory.
To create a branch in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Next to the repository name, select the plus icon ({plus}) > New branch.
- Complete the fields.
- Select Create branch.
You can create tags to mark milestones such as production releases and release candidates. To create a tag in the Web Editor:
- On the left sidebar, select Search or go to and find your project.
- Next to the repository name, select the plus icon ({plus}) > New tag.
- Complete the fields.
- Select Create tag.