summaryrefslogtreecommitdiff
path: root/doc/user/gitlab-basics/add-image.md
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-06-21 13:28:50 +0200
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-06-21 13:28:50 +0200
commit24ad2f4f0d9e8ebfd8133a572f29e52b74cd7dd5 (patch)
tree056c6dc55069e322db64875a1d16a65293a10ed8 /doc/user/gitlab-basics/add-image.md
parent0d287b06a6fa7a373df03378f9f1a048e5890a4f (diff)
downloadgitlab-ce-documentation_restructure.tar.gz
Restructure documentationdocumentation_restructure
The big plan in motion, see https://gitlab.com/gitlab-org/gitlab-ce/issues/3349
Diffstat (limited to 'doc/user/gitlab-basics/add-image.md')
-rw-r--r--doc/user/gitlab-basics/add-image.md62
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/user/gitlab-basics/add-image.md b/doc/user/gitlab-basics/add-image.md
new file mode 100644
index 00000000000..476b48a217c
--- /dev/null
+++ b/doc/user/gitlab-basics/add-image.md
@@ -0,0 +1,62 @@
+# How to add an image
+
+The following are the steps to add images to your repository in
+GitLab:
+
+Find the image that you’d like to add.
+
+In your computer files, find the GitLab project to which you'd like to add the image
+(you'll find it as a regular file). Click on every file until you find exactly where you'd
+like to add the image. There, paste the image.
+
+Go to your [shell](command-line-commands.md), and add the following commands:
+
+Add this command for every directory that you'd like to open:
+```
+cd NAME-OF-FILE-YOU'D-LIKE-TO-OPEN
+```
+
+Create a new branch:
+```
+git checkout -b NAME-OF-BRANCH
+```
+
+Check if your image was correctly added to the directory:
+```
+ls
+```
+
+You should see the name of the image in the list shown.
+
+Move up the hierarchy through directories:
+```
+cd ../
+```
+
+Check the status and you should see your image’s name in red:
+```
+git status
+```
+
+Add your changes:
+```
+git add NAME-OF-YOUR-IMAGE
+```
+
+Check the status and you should see your image’s name in green:
+```
+git status
+```
+
+Add the commit:
+```
+git commit -m “DESCRIBE COMMIT IN A FEW WORDS”
+```
+
+Now you can push (send) your changes (in the branch NAME-OF-BRANCH) to GitLab (the git remote named 'origin'):
+```
+git push origin NAME-OF-BRANCH
+```
+
+Your image will be added to your branch in your repository in GitLab. Create a [Merge Request](add-merge-request.md)
+to integrate your changes to your project.