Ubuntu Gitlab Backup Code Server

Source: Internet
Author: User

The company's version control software is git, usually by its own mailbox or user name registered Gitlab, and then create a new project:

Click Project to test your project connection:

Next you need to add your own ssh to your git account:

Take Ubuntu for example:

To see if your virtual machine generated SSH key:

Ls-al ~/.ssh


If not, execute the following build SSH key:

Ssh-keygen-t rsa-b 4096-c "[Email protected]"


To add a proxy to a virtual machine:

Eval $ (ssh-agent-s)

Ssh-add ~/.ssh/id_rsa

Copy the public key to your git account:

Gedit ~/.ssh/id_rsa.pub

Virtual Machine Creation Warehouse:

mkdir test
CD test
Git init
git remote add origin [email protected]:hongzhunzhun/test.git

Touch Hong

Cat "XXXX" > Hong

git Add.
git commit-m "xxxxx"


View Current Branch
Git branch

Switch branches
GIT branch test
git checkout Test

Upload Branch
Git push origin test

Download Sync Branch

Git pull Origin test

Reference Links:

GitHub Help:

https://help.github.com/

Http://www.111cn.net/sys/linux/118352.htm










Ubuntu Gitlab Backup Code Server

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.