git码云上传本地项目

可参考:https://blog.csdn.net/huangfei711/article/details/69388230
1.在你的项目上鼠标右击点击Git bash
  git config --global user.name "你的名字或昵称"
  git config --global user.email "你的邮箱"
2.生成RSA密钥对
  $ ssh-keygen -t rsa -C "你的邮箱地址"
  # 为了方便,全称回车即可,不必输入rsa文件名及密码

3.查看公钥内容
    $ cat ~/.ssh/id_rsa.pub
4.测试公钥
    # 测试 SSH 连接
    $ ssh -T [email protected]
        ssh -T [email protected]
# 终端提示 Welcome to Git@OSC...说明连接成功
现在就是上传到git
在你的文件夹上右击点Git bash
    git init
    git clone [email protected]:LYDZYL/pmo.git
添加远程仓库
git remote add origin [email protected]:LYDZYL/pmo.git
git remote -v
git pull origin master

添加你要上传的文件路径git add 文件名
git commit -m "lizhao ceshi"如果是最新的东西给你上传的东西坐下描述

git push origin master上传

猜你喜欢

转载自www.cnblogs.com/lizhao123/p/9355651.html