GitLab may not work properly because you are using an outdated web browser.
Please install a supported web browser for a better experience.

GitLab Web Editor

Sometimes it's easier to make quick changes directly from the GitLab interface than to clone the project and use the Git command line tool. In this feature highlight we look at how you can create a new file, directory, branch or tag from the file browser. All of these actions are available from a single dropdown menu.

Create a file

From a project's files page, click the '+' button to the right of the branch selector. Choose New file from the dropdown.

New file dropdown menu

Enter a file name in the File name box. Then, add file content in the editor area. Add a descriptive commit message and choose a branch. The branch field will default to the branch you were viewing in the file browser. If you enter a new branch name, a checkbox will appear allowing you to start a new merge request after you commit the changes.

When you are satisfied with your new file, click Commit Changes at the bottom.

Create file editor

Template dropdowns

When starting a new project, there are some common files which the new project might need too. Therefore a message will be displayed by GitLab to make this easy for you.

First file for your project

When clicking on either LICENSE or .gitignore, etc., a dropdown will be displayed to provide you with a template which might be suitable for your project.

MIT license selected

The license, changelog, contribution guide, or .gitlab-ci.yml file could also be added through a button on the project page. In the example below, the license has already been created, which creates a link to the license itself.

New file button

Note: The Set up CI/CD button will not appear on an empty repository. You have to at least add a file in order for the button to show up.

Upload a file

The ability to create a file is great when the content is text. However, this doesn't work well for binary data such as images, PDFs or other file types. In this case you need to upload a file.

From a project's files page, click the '+' button to the right of the branch selector. Choose Upload file from the dropdown.

Upload file dropdown menu

Once the upload dialog pops up there are two ways to upload your file. Either drag and drop a file on the pop up or use the click to upload link. A file preview will appear once you have selected a file to upload.

Enter a commit message, choose a branch, and click Upload file when you are ready.

Upload file dialog

Create a directory

To keep files in the repository organized it is often helpful to create a new directory.

From a project's files page, click the '+' button to the right of the branch selector. Choose New directory from the dropdown.

New directory dropdown

In the new directory dialog enter a directory name, a commit message and choose the target branch. Click Create directory to finish.

New directory dialog

Create a new branch

There are multiple ways to create a branch from GitLab's web interface.

Create a new branch from an issue

Introduced in GitLab 8.6.

In case your development workflow dictates to have an issue for every merge request, you can quickly create a branch right on the issue page which will be tied with the issue itself. You can see a New branch button after the issue description, unless there is already a branch with the same name or a referenced merge request.

New Branch Button

Once you click it, a new branch will be created that diverges from the default branch of your project, by default master. The branch name will be based on the title of the issue and as a prefix, it will have its internal ID. Thus, the example screenshot above will yield a branch named 23177-add-support-for-rich-references-to-referables.

Since GitLab 9.0, when you click the New branch in an empty repository project, GitLab automatically creates the master branch, commits a blank README.md file to it and creates and redirects you to a new branch based on the issue title. If your project is already configured with a deployment service (e.g. Kubernetes), GitLab takes one step further and prompts you to set up auto deploy by helping you create a .gitlab-ci.yml file.

After the branch is created, you can edit files in the repository to fix the issue. When a merge request is created based on the newly created branch, the description field will automatically display the issue closing pattern Closes #ID, where ID the ID of the issue. This will close the issue once the merge request is merged.

Create a new branch from a project's dashboard

If you want to make changes to several files before creating a new merge request, you can create a new branch up front. From a project's files page, choose New branch from the dropdown.

New branch dropdown

Enter a new Branch name. Optionally, change the Create from field to choose which branch, tag or commit SHA this new branch will originate from. This field will autocomplete if you start typing an existing branch or tag. Click Create branch and you will be returned to the file browser on this new branch.

New branch page

You can now make changes to any files, as needed. When you're ready to merge the changes back to master you can use the widget at the top of the screen. This widget only appears for a period of time after you create the branch or modify files.

New push widget

Create a new tag

Tags are useful for marking major milestones such as production releases, release candidates, and more. You can create a tag from a branch or a commit SHA. From a project's files page, choose New tag from the dropdown.

New tag dropdown

Give the tag a name such as v1.0.0. Choose the branch or SHA from which you would like to create this new tag. You can optionally add a message and release notes. The release notes section supports markdown format and you can also upload an attachment. Click Create tag and you will be taken to the tag list page.

New tag page

Tips

When creating or uploading a new file, or creating a new directory, you can trigger a new merge request rather than committing directly to master. Enter a new branch name in the Target branch field. You will notice a checkbox appear that is labeled Start a new merge request with these changes. After you commit the changes you will be taken to a new merge request form.

Start a new merge request with these changes

If you'd prefer not to use your primary email address for commits created through the web editor, you can choose to use another of your linked email addresses from the User Settings > Edit Profile page.

线上太阳城信誉网址-真人太阳城开户注册-现金太阳城娱乐平台 线上永利直营注册 现金威尼斯人 直营网址 真人新濠天地开户 现金美高梅网址直营 现金威尼斯人注册 真人平台娱乐 现金葡京开户网址 线上直营 现金平台注册 太阳城平台注册 注册开户 真人直营 真人网址平台
网址平台 真人平台网址 开户直营 现金太阳城直营开户 现金网址平台 真人太阳城娱乐开户 太阳城网址平台 线上网址 平台开户 太阳城注册直营 真人开户注册 现金太阳城平台注册 现金注册网址 真人注册娱乐 真人太阳城娱乐直营 真人太阳城娱乐网址 太阳城注册娱乐 线上注册 现金太阳城直营平台 现金太阳城注册直营 真人太阳城 现金太阳城平台直营 真人太阳城平台注册 现金网址平台 现金开户娱乐 真人娱乐平台 线上开户娱乐 线上太阳城直营娱乐 真人太阳城平台注册 线上太阳城平台开户 真人太阳城平台注册 真人平台娱乐 太阳城开户平台 线上太阳城网址开户 线上网址 真人直营 真人太阳城网址开户 线上开户注册 线上注册开户 太阳城娱乐注册 太阳城平台网址 线上太阳城平台直营 现金太阳城平台 真人太阳城网址注册 线上注册平台 线上注册平台 线上太阳城平台直营 太阳城平台直营 现金平台 现金太阳城平台注册 开户直营 线上开户娱乐 真人太阳城开户直营 现金太阳城网址娱乐 现金网址 线上太阳城注册网址 现金网址开户 现金太阳城平台注册 直营娱乐 直营开户 真人网址娱乐 真人平台 太阳城平台注册 线上太阳城平台开户 线上平台直营 线上太阳城注册平台 注册开户 线上注册直营 真人开户娱乐 现金太阳城直营 线上太阳城娱乐网址 现金太阳城网址直营 线上注册开户 现金娱乐网址 现金太阳城注册直营 真人太阳城平台开户 现金太阳城开户 现金太阳城开户网址 线上直营开户 现金太阳城直营 现金娱乐直营 太阳城开户直营 开户娱乐 真人太阳城平台直营 线上注册娱乐 真人注册开户 线上太阳城注册开户 平台网址 真人太阳城平台开户 现金太阳城娱乐 线上太阳城直营网址 现金注册平台 现金太阳城注册娱乐 现金娱乐 线上太阳城直营平台 现金太阳城注册开户 真人娱乐 线上太阳城直营开户 太阳城直营 现金太阳城平台 真人太阳城网址平台 真人太阳城注册平台 线上太阳城注册娱乐 线上网址 现金注册直营 真人太阳城直营娱乐 线上太阳城开户娱乐 真人太阳城直营 线上太阳城娱乐网址 线上太阳城平台 真人太阳城开户注册 线上网址娱乐 现金太阳城娱乐开户 线上太阳城注册网址 现金太阳城直营 现金直营网址 线上太阳城平台 太阳城网址注册 现金开户 真人太阳城平台开户 真人注册网址 线上娱乐 真人直营网址 真人太阳城平台 真人太阳城网址 线上太阳城开户直营 线上太阳城娱乐注册 线上太阳城平台娱乐 注册直营 太阳城娱乐直营 直营网址 真人娱乐平台 现金太阳城网址直营 真人网址平台 现金太阳城平台注册 太阳城直营开户 线上太阳城平台网址 真人网址娱乐 线上太阳城开户直营 娱乐开户 真人太阳城直营开户 线上平台注册 线上太阳城网址开户 现金太阳城网址平台 现金太阳城平台娱乐 真人太阳城网址娱乐 真人太阳城开户直营 真人直营开户 太阳城开户平台 线上太阳城开户平台 真人太阳城开户网址 娱乐网址 现金太阳城直营开户 注册直营 线上太阳城娱乐直营 现金太阳城注册平台 现金太阳城注册直营 现金平台娱乐 线上平台开户