diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-21 10:08:36 +0300 |
commit | 48aff82709769b098321c738f3444b9bdaa694c6 (patch) | |
tree | e00c7c43e2d9b603a5a6af576b1685e400410dee /doc/gitlab-basics/add-file.md | |
parent | 879f5329ee916a948223f8f43d77fba4da6cd028 (diff) |
Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42
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 |