• 码云的脚本配置Mac版


    1. 生成公钥

    ssh-keygen -t rsa -C "your@email.com"  

    注意:在选择文件存储路径时,直接回车,保存在默认路径下

    2..查看public key

    cat ~/.ssh/id_rsa.pub

    3.将公钥添加到码云SSH公钥页面(https://gitee.com/profile/sshkeys),然后测试连接

    ssh -T git@gitee.com

    4.配置 git

    git config --global user.name "John Smith"
    git config --global user.email john@example.com

    5.进入目标文件夹,克隆仓库

    cd Documents/workingspace/
    git clone git@gitee.com:hotoneaudio/test.git

    6.提交

    git add .
    git commit -m '初始化项目'
    git push origin master

  • 相关阅读:
    逻辑回归
    异常
    内部类
    接口
    多态
    final关键字(最终的)
    不能被继承的父类成员
    对象初始化的过程
    方法重写
    abstract关键字
  • 原文地址:https://www.cnblogs.com/PJXWang/p/10305719.html
Copyright © 2020-2023  润新知