The local project is hosted on the cloud code

 

 

1.1 download code cloud of graphical tools: https://git-scm.com/download/win

 

 

After downloading, follow the steps in the installation, be noted that:

 

 

Environment is automatically configured after installing git:

 

2.git use

2.1 Console Root switch to the project directory:

2.2 run git git init command to initialize:

Then the root directory of the project will be more than a .git folder:

2.2 View File Status: git status

2.3 git add the job is submitted to all the changes to the staging area:

2.4 submit and then view the status of files: git Status can see the status of the file has changed.

 

2.5 submit the project: git commit -m 'submissions'.

 

 

 2.6 SSH generated public key:

Input console: ssh-keygen -t rsa -C "Mailbox Number."

Enter three times after it successfully created the SSH public key.

View public key: cat ~ / .ssh / id_rsa.pub

Once you've created a warehouse, there will be three black box, enter the following command at the cmd console:

git config --global user.name "username"

git config --global user.email mailbox number

Since we are already in the project, will switch to the root directory under the project:

git remote add origin https://gitee.com/EJLL/Vue0001.git

After successfully enter:

git push -u origin master

Will take over the git asked to enter a user name and password,

I just start typing a code cloud user name, later Log out a bit and found code cloud using mail login, we enter the above command again when the box enter a user name and password will not appear again, only you will be prompted user name or password error:

 

 

Solution:

 

 

Here the user name and password to get rid of:

 

 

Run again

 

 

We can see the projects have been successfully released.

 

 

 

Guess you like

Origin www.cnblogs.com/ejll/p/10990947.html