Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
8e53bae7
Commit
8e53bae7
authored
Aug 02, 2015
by
karen Carias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New doc about how to add an image in GitLab Basics
parent
d2fffff0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
doc/gitlab-basics/README.md
doc/gitlab-basics/README.md
+2
-0
doc/gitlab-basics/add-image.md
doc/gitlab-basics/add-image.md
+62
-0
No files found.
doc/gitlab-basics/README.md
View file @
8e53bae7
...
@@ -20,4 +20,6 @@ Step-by-step guides on the basics of working with Git and GitLab.
...
@@ -20,4 +20,6 @@ Step-by-step guides on the basics of working with Git and GitLab.
*
[
Add a file
](
add-file.md
)
*
[
Add a file
](
add-file.md
)
*
[
Add an image
](
add-image.md
)
*
[
Create a Merge Request
](
add-merge-request.md
)
*
[
Create a Merge Request
](
add-merge-request.md
)
doc/gitlab-basics/add-image.md
0 → 100644
View file @
8e53bae7
# 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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment