本地工程上传到码云

git身份设置,让git知道你是谁

 

[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]"  

生成公钥

 

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


初始化普通项目为git项目

 

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

 

提交项目

 

[python]  view plain  copy
 
  1. git pull origin master  
  2. git add .  
  3. git commit -m "第一次提交"

猜你喜欢

转载自ailikes.iteye.com/blog/2416082