gitlab Upload Code

 

# Generates a public key
SSH-keygen -t ed25519 -C "[email protected]"
# Copy public
pbcopy <~ / .ssh / id_ed25519.pub

Page user settings -> ssh keys page, paste the public key

Create a local side warehouse
mkdir Project
cd Project
git the init

Cloning of the distal end of the code #
git clone ssh: //[email protected]: 8022 / test / api_automation.git

# Configure mailbox user name
git config --global user.email "[email protected]"
git config --global user.name "xxx"

Down into the cloning project
cd api_automation

The project code is copied into that directory, and then submit to
git the Add.
Git the commit -AM "First the commit"
git the Push


Reference:
http://gitlab.tian-wang.com/help/ssh/README#generating-a-new-ssh-key-pair

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11389324.html