Gitlab User Manual

Source: Internet
Author: User

I have been busy recently and have no time to write a blog. I wrote a user manual on gitlab early today to share with you.

Directory

 

I. Account/Project Application

Ii. login and password Modification

Iii. SSH Key import

4. Upload/download code

1. Upload the user system to linux)

2. Download the user system as linux)

3. Upload the user to windows)

4. Download the user system as windows)

I. Account/Project Application

1. To apply for an account, you must use your company's email address to send an email application. For details about the sending requirements, see the following two-3 items;

2. In addition to cc to public groups, the authorization emails for new project warehouse creation and new team members must be cc to vcp, otherwise, it is better for the O & M team members to authorize the user;

3. Send an email to the owner and vcp of the current project when applying for permission assignment for the project team. Then, the O & M team members can grant permissions to the project team.

The format of the applied account/Project is

Name:

Title:

Project Team:

Repository Name:

Project leader:

After an account or project is successfully created by the O & M group, an email is sent to notify you of the completion status and repository name in the email.

Ii. login and password Modification

On the gitlab web interface http: // ip, enter the account and password to log on.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P35X2-0.jpg"/>

If you want to change the password, select My Profile on the right.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P34034-1.jpg"/>

Then select Account

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P31O1-2.jpg"/>

Finally, modify your Password in Password.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P31612-3.jpg"/>

If the password is forgotten, send an email to the O & M group to reset your account password.

Iii. SSH Key import

If you want to upload and download code, you need to import your ssh key to gitlab by using the following method:

1. Right-click the content in id_rsa.pub and choose "open mode"> "Notepad );

2. Select My Porfile

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P3L45-4.jpg"/>

Select SSH Keys

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P35508-5.jpg"/>

Select Add new

Then copy the content in the previously copied id_rsa.pub to the key.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P355I-6.jpg"/>

Select Save.

4. Upload/download code

1. Upload the user system to linux)

If the gitlab library is a new library, the following interface should be displayed:

650) this. width = 650; "title =" 7_meitu_1.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/163P36022-7.jpg "/>

To upload code in linux, set git global settings first.

git config --global user.name "Administrator"git config --global user.email "mail address"

Both user. name and user. email must enter your own information.

Then enter an existing database, for example, your existing database name is test)

Cd test

Then, follow these steps:

git remote add origin gitlab@ip:root/test.gitgit push -u origin master

Remember, in the above operation, the gitlab @ ip: root/test. git after the origin receives the interface information for you, not the same as above.

If the following error occurs during git remote add origin gitlab @ ip: root/test. git

Fatal: remote origin already exists.

Enter the following command

git remote rm origin

Then input the previous command

git remote add origin gitlab@ip:root/test.git

If no error is reported

git push -u origin master

However, note that this operation creates a master branch with only one branch.

Note that if you have many local branches and want to upload them to the server,

git remote add origin gitlab@ip:root/test.git

Do not perform the next step after this step. Enter the following command

Git push -- all

In this way, all branches will be uploaded to the server.

If you want to upload all your tags to the server, after entering git push -- all, run the following command to upload all the tags to the server.

Git push -- tags

After that, the web page appears.

650) this. width = 650; "title =" 7_meitu_1.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/163P31536-8.jpg "/>

Not the prompt operation interface

Then you can select Files to view the current file information.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P33963-9.jpg"/>

You can also select Commits to view the submission information.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P3K43-10.jpg"/>

2. Download the user system as linux)

When your user system is linux, first find a directory to store, such as the tmp directory), and then use the git clone gitlab library address to download the library.

For example, for the test project, the address in gitlab is gitlab @ ip: root/test. git.

Run git clone below

650) this. width = 650; "title =" 7_meitu_1.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/163P345c-11.jpg "/>

This means that you have successfully cloned git.

Note that if the git library has multiple branches, you must add -- bare to the download. The complete format is

Git clone-bare git repository address

After the download is complete, you can go to the directory, use git branch to view how many branches are there, and use git tag to view how many tags are there.

3. Upload the user to windows)

If your user system is windows, enter the existing library directory, use the git window tool, right-click, select Git commit-à Master as the Master branch for the current test. If you have other branches, select) and enter the corresponding information in the displayed dialog box.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P3O37-12.jpg"/>

Enter the corresponding information, and then select OK

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P310I-13.jpg"/>

If the following occurs, the operation is completed.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P33202-14.jpg"/>

Log on to the Commits in gitlab to view the submitted information.

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P32O5-15.jpg"/>

To view the file, go to Files.

4. Download the user system as windows)

Find a location under win, and then use git clone to download the address of the above gitlab Project

For example, for the test project, the address in gitlab is gitlab @ ip: root/test. git.

Execute git clone, for example, I am under the e drive)

650) this. width = 650; "title =" 7_meitu_1.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/163P31410-16.jpg "/>

Then select OK

If

650) this. width = 650; "title =" 7_meitu_1.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/163P34T6-17.jpg "/>

Select Y)

Then

650) this. width = 650; "title =" 7_meitu_1.jpg "src =" http://www.bkjia.com/uploads/allimg/131227/163P3D31-18.jpg "/>

Demonstrate how to clone your test project in git

If git clone is complete

650) this. width = 650; "title =" 7.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/163P34307-19.jpg"/>

Select Close.

 

This article is from the "Yin-Technical Exchange" blog, please be sure to keep this source http://dl528888.blog.51cto.com/2382721/1292316

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.