配置gitee与本地账户 将自己的修改与远程仓库同步
1、gitee上先添加公钥
在终端执行如下指令
ssh-keygen
cd ~/.ssh/
可以看到文件id_rsa.pub文件生成,
cat id_rsa.pub
将其中的内容全部拷贝到gitee账户中。
SSH公钥 - Gitee.com
2、测试连接 ssh -T user_name@gitee.com
3、先在gitee创建一个仓库,例如我这里创建sourrce 仓库
关联仓库到本地
git remote add origin https://gitee.com/victorywr/source.git
4、进入仓库界面,git clone 仓库到本地
5、设置本地的提交账户几邮箱,这样每一笔提交就知道是谁了
git config --global user.name "your namr"
git config --global user.email "your email"
6、在clone的仓库下就能提交自己的修改和文件了
git push origin master