diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-29 12:04:14 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-07-29 12:39:44 +0200 |
commit | 76b3e44c3955e14addc7e577a475634e6f0f68b3 (patch) | |
tree | c5632b6af9d82f40f815523e3f0b667987798ab6 /doc/gitlab-basics/add-file.md | |
parent | 05cca9342b3cff4e9f2785a062822cd3af9fcdd4 (diff) | |
parent | a06827bff934a7b387dc4280a555e0c81cc06604 (diff) | |
download | gitlab-ce-76b3e44c3955e14addc7e577a475634e6f0f68b3.tar.gz |
Merge branch 'master' into api-new-attributes
Diffstat (limited to 'doc/gitlab-basics/add-file.md')
-rw-r--r-- | doc/gitlab-basics/add-file.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/gitlab-basics/add-file.md b/doc/gitlab-basics/add-file.md new file mode 100644 index 00000000000..e7c441e7698 --- /dev/null +++ b/doc/gitlab-basics/add-file.md @@ -0,0 +1,31 @@ +# How to add a file + +You can create a file in your [shell](command-line-commands.md) or in GitLab. + +To create a file in GitLab, sign in to [GitLab.com](https://gitlab.com). + +Select a project on the right side of your screen: + + + +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: + + + +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 : + + + +Add all the information that you'd like to include in your file: + + + +Add a commit message based on what you just added and then click on "commit changes": + + + +### Note +Besides its regular files, every directory needs a README.md or README.html file which works like an index, telling +what the directory is about. It's the first document you'll find when you open a directory. |