diff options
Diffstat (limited to 'doc/gitlab-basics/add-file.md')
-rw-r--r-- | doc/gitlab-basics/add-file.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/gitlab-basics/add-file.md b/doc/gitlab-basics/add-file.md index c5b57d4623d..0b400d7fdb4 100644 --- a/doc/gitlab-basics/add-file.md +++ b/doc/gitlab-basics/add-file.md @@ -29,16 +29,17 @@ to the desired destination: cd <destination folder> ``` -[Create a branch](create-branch.md) to add your file to, before it is added to the master -(main) branch of the project. It is not strictly necessary, but working directly in -the `master` branch is not recommended unless your project is very small, and you are -the only person working on it. You can [switch to an existing branch](start-using-git.md#work-on-an-existing-branch), +[Create a new branch](create-branch.md) to add your file into. Submitting changes directly +to the default branch should be avoided unless your project is very small and you're the +only person working on it. + +You can also [switch to an existing branch](start-using-git.md#work-on-an-existing-branch) if you have one already. Using your standard tool for copying files (for example, Finder in macOS, or File Explorer -in Windows), put the file into a directory within the GitLab project. +on Windows), put the file into a directory within the GitLab project. -Check if your file is actually present in the directory (if you are in Windows, +Check if your file is actually present in the directory (if you're on Windows, use `dir` instead): ```shell @@ -79,7 +80,7 @@ Now you can push (send) your changes (in the branch `<branch-name>`) to GitLab git push origin <branch-name> ``` -Your image will be added to your branch in your repository in GitLab. +Your image is added to your branch in your repository in GitLab. <!-- ## Troubleshooting |