Ubuntu16.04 git安装与配置

一、安装与升级git

    先查看系统是否安装有git,没有则sudo apt-get install git安装

    查看版本后可升级git:

    sudo add-apt-repository ppa:git-core/ppa

    sudo apt-get update

    sudo apt-get install git

二、配置git

    git config --global user.name "xx"      
    git config --global user.email "[email protected]"   

    git config --list(查看配置的信息)

三、生成key

    ssh-keygen -t rsa

    然后再~/.ssh/中可以看到key了

四、使用git

    xxxxxxxxxxxxxxxx

猜你喜欢

转载自blog.csdn.net/Carl_0/article/details/88061191