Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkaren Carias <karen@gitlab.com>2015-08-02 19:52:30 +0300
committerkaren Carias <karen@gitlab.com>2015-08-02 19:52:30 +0300
commit8e53bae700e356a42f86457295b6b25fc0b03d6d (patch)
treef3ec1d1ba0c02f9ca4623447b8d1f1fcc3a56445 /doc
parentd2fffff0ecfbc5eadf754905cee8a8593ed3c623 (diff)
New doc about how to add an image in GitLab Basics
Diffstat (limited to 'doc')
-rw-r--r--doc/gitlab-basics/README.md2
-rw-r--r--doc/gitlab-basics/add-image.md62
2 files changed, 64 insertions, 0 deletions
diff --git a/doc/gitlab-basics/README.md b/doc/gitlab-basics/README.md
index 9491f8c91fe..b904c70e980 100644
--- a/doc/gitlab-basics/README.md
+++ b/doc/gitlab-basics/README.md
@@ -20,4 +20,6 @@ Step-by-step guides on the basics of working with Git and GitLab.
* [Add a file](add-file.md)
+* [Add an image](add-image.md)
+
* [Create a Merge Request](add-merge-request.md)
diff --git a/doc/gitlab-basics/add-image.md b/doc/gitlab-basics/add-image.md
new file mode 100644
index 00000000000..4a43e8c3584
--- /dev/null
+++ b/doc/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:
+
+- To find the correct file, add this command for every file that you'd like to open until
+you reach the file where you added your image:
+```
+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 file:
+```
+ls
+```
+
+You should see the name of the image in the list shown.
+
+- Go back one file:
+```
+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”
+```
+
+- Send your changes to GitLab.com:
+```
+git push origin NAME-OF-BRANCH
+```
+
+Your image should've been added to your repository in GitLab.