Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 751 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 751 Bytes

Hello would Python 2.7 License

  1. 初始化,内容在~/.gitconfig

    git config --global user.name 'Wilson--Liu'
    git config --global user.email '[email protected]'
    git config --global color.ui auto

  2. 添加密钥,id_rsa 为私钥,id_rsa.pub 为公钥

    ssh-keygen -t rsa -C "[email protected]"

  3. 将公钥的内容添加到 Github 中

    cat ./.ssh/id_rsa.pub

  4. GitHub 进行认证和通信

    ssh -T [email protected]

  5. 举个栗子

    git clone [email protected]:WilsonYangLiu/hello-world.git
    cd hello-world/

    git status

    git add hello-world.py
    git commit -m "Add hello world script by python"

    git log

    git push