mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
added new document about adding new files
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
Step-by-step guides on the basics of working with Git and GitLab.
|
||||
|
||||
* [Start using Git on the commandline](start-using-git.md)
|
||||
* [Start using Git on the command line](start-using-git.md)
|
||||
|
||||
* [Create and add your SSH Keys](create-your-ssh-keys.md)
|
||||
|
||||
@ -17,3 +17,5 @@ Step-by-step guides on the basics of working with Git and GitLab.
|
||||
* [Create a branch](create-branch.md)
|
||||
|
||||
* [Fork a project](fork-project.md)
|
||||
|
||||
* [Add a file](add-file.md)
|
||||
|
31
doc/gitlab-basics/add-file.md
Normal file
31
doc/gitlab-basics/add-file.md
Normal file
@ -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:
|
||||
|
||||

|
||||
|
||||
[Create a branch](create-branch.md).
|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
Add a name to your file, use .md or .html at the end, depending on which markup language you'd like to use (you can't add spaces, so you can use hyphens or underscores):
|
||||
|
||||

|
||||
|
||||
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.
|
Reference in New Issue
Block a user