1.打通本地电脑和git远程
1.创建ssh
ssh-keygen -t rsa -C "phenixxxxx@outlook.com"
cat ~/.ssh/id_rsa.pub
添加到码云key
ssh -T git@git.oschina.net 验证结果
2.本地初始化
git config --global user.name "zc14"
git config --global user.email "phenixxxxx@outlook.com"
3.初始化远程
创建本地文件夹
git init
git remote add origin https://gitee.com/cz14/test.git
git clone test: 用于测试连接
add .
git commit -am "add a file"
git push