Upload the local project to the code cloud

git identity settings, let git know who you are

 

[python]  view plain copy  
 
  1. D:\wxspace\dawn>git config --global user.name "xxx"  
  2.   
  3. D:\wxspace\dawn>git config --global user.email "[email protected]"  

 

generate public key

 

[python]  view plain copy  
 
  1. ssh-keygen -t rsa -C "[email protected]"  


Initialize a normal project as a git project

 

[python]  view plain copy  
 
  1. git init   
  2. git remote add origin "https://gitee.com/xxx/xxx.git"  

 

Submit project

 

[python]  view plain copy  
 
  1. git pull origin master  
  2. git add .  
  3. git commit -m  "first commit"

Guess you like

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