gitlab-org--gitlab-foss/doc/gitlab-basics/add-file.md

28 lines
905 B
Markdown
Raw Normal View History

# How to add a file
You can create a file in your [shell](command-line-commands.md) or in GitLab.
2015-07-31 15:21:53 +00:00
To create a file in GitLab, sign in to GitLab.
Select a project on the right side of your screen:
2016-10-10 19:36:30 +00:00
![Select a project](img/select_project.png)
2015-07-27 23:46:30 +00:00
It's a good idea to [create a branch](create-branch.md), but it's not necessary.
Go to the directory where you'd like to add the file and click on the "+" sign next to the name of the project and directory:
2016-10-10 19:36:30 +00:00
![Create a file](img/create_file.png)
2015-07-27 23:46:30 +00:00
Name your file (you can't add spaces, so you can use hyphens or underscores). Don't forget to include the markup language you'd like to use :
2016-10-10 19:36:30 +00:00
![File name](img/file_name.png)
Add all the information that you'd like to include in your file:
2016-10-10 19:36:30 +00:00
![Add information](img/white_space.png)
Add a commit message based on what you just added and then click on "commit changes":
2016-10-10 19:36:30 +00:00
![Commit changes](img/commit_changes.png)