In this chapter, we will discuss about how to add a file to a project in the GitLab. We can add file in two ways −
Step 1 − To create a file by using command line interface, type the below command in your project directory −
Step 2 − Now go to your project directory and you will see the created file −
Step 1 − You can create a new file, by clicking on the '+' button which is at the right side of the branch selector in the dashboard −
Step 2 − Enter the file name, add some content in the editor section and click on the Commit changes button to create the file.
Step 3 − Now you will get a successful message after creating the file as shown below −