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