---
title: "本地工程上传到码云"
author: "AILIKES"
date: "2018-04-09T19:12:03Z"
tags: []
categories: ["研发管理"]
slug: "untitled"
draft: false
lastmod: "2018-04-09T19:12:03Z"
id: 2416082
url: "https://ailikes.iteye.com/blog/2416082"
---

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

 

**\[python]** [view plain](https://blog.csdn.net/zqw958252871/article/details/78116265 "view plain") [copy](https://blog.csdn.net/zqw958252871/article/details/78116265 "copy")

 

1. D:\\wxspace\\dawn&gt;git config --global user.name "xxx"
2. D:\\wxspace\\dawn&gt;git config --global user.email "xxx@qq.com"

 

生成公钥

 

**\[python]** [view plain](https://blog.csdn.net/zqw958252871/article/details/78116265 "view plain") [copy](https://blog.csdn.net/zqw958252871/article/details/78116265 "copy")

 

1. ssh-keygen -t rsa -C "xxx@qq.com"

![](https://blog.csdn.net/zqw958252871/article/details/78116265)  
初始化普通项目为git项目

 

**\[python]** [view plain](https://blog.csdn.net/zqw958252871/article/details/78116265 "view plain") [copy](https://blog.csdn.net/zqw958252871/article/details/78116265 "copy")

 

1. git init
2. git remote add origin "https://gitee.com/xxx/xxx.git"

 

提交项目

 

**\[python]** [view plain](https://blog.csdn.net/zqw958252871/article/details/78116265 "view plain") [copy](https://blog.csdn.net/zqw958252871/article/details/78116265 "copy")

 

1. git pull origin master
2. git add .
3. git commit -m "第一次提交"