GitLab 7.13.x installation and configuration <2>--Linux articles

Read the table of contents:

1. Create a new project warehouse and configure GitLab

2. Add users

3. Configure git on the client side (win platform)

4. Configure ssh

5. Debug the git connection on the client side

1. Create a new project warehouse and configure GitLab

    1.1 Create a new project warehouse

    1.2 Add necessary information

    1.3 Completion of opening a position

2. Add users

    2.1 Add users

    2.2 Configuring User Properties

3. Configure git on the client side (win platform)

Prerequisite: Right-click the project and click git bash here

    3.1 Create SSH Key

    $ ssh-keygen -t rsa -C "[email protected]"
        比如:---> $ ssh-keygen -t rsa -C "[email protected]"

    3.2 Configure global variables

    $ git config --global user.name "Your Name"
    $ git config --global user.email "[email protected]"
        For example: ---> $ git config --global user.name "lou"
                  $ git config --global user.email "[email protected]"

4. Configure ssh

    4.1 View the client's public key

         Open C:\Users\Administrator\.ssh

    4.2 Edit the file id_rsa.pub

        Copy the public key

    4.3 Add ssh public key to GitLab

        Go back to the GitLab configuration page,

        add the public key,

5. Debug the git connection on the client side

    5.1 Cloning from a remote repository

    $ git clone [email protected]:root/newProject.git
    warning: You appear to have cloned an empty repository. <normal phenomenon, there is nothing in the remote repository at this time>

    5.2 Pull the git warehouse code <only enter yes>

    $ git pull
    The authenticity of host '192.168.19.128 (192.168.19.128)' can't be established.
    RSA key fingerprint is SHA256:YmaS17gQlWUCYOku0w1dpVYmrq/QILGIpOpTqEq1yy0.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '192.168.19.128' (RSA) to the list of known hosts.
    From 192.168.19.128:root/newProject
     * [new branch]      master     -> origin/master
    There is no tracking information for the current branch.
    Please specify which branch you want to merge with.
    See git-pull(1) for details.

Note: The same effect with git push , when you first connect to GitLab using Git's pull or push command, you will get a warning.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325468726&siteId=291194637