Commit 8e53bae7 authored by karen Carias's avatar karen Carias

New doc about how to add an image in GitLab Basics

parent d2fffff0
......@@ -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)
# 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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment