diff options
author | Job van der Voort <job@gitlab.com> | 2015-07-28 13:43:30 +0000 |
---|---|---|
committer | Job van der Voort <job@gitlab.com> | 2015-07-28 13:43:30 +0000 |
commit | 5efb58b09a9c0c794a66ae0b46df4c7d58064b60 (patch) | |
tree | eb8516a08607827eece6576f4b653e9c0dce6fae /doc/gitlab-basics/add-file.md | |
parent | 2f5359233d148f1edcb734dd53a7399375fded7f (diff) | |
parent | d61433542e3bbcfac6b706a5e907240ca02c6de9 (diff) | |
download | gitlab-ce-5efb58b09a9c0c794a66ae0b46df4c7d58064b60.tar.gz |
Merge branch 'add-file' into 'master'
New document in GitLab Basics about adding new files
See merge request !1913
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. |