本地安装git

        在ubuntu上安装git特别简单

        首先用命令查看是否安装git

        在终端输入 git

        如果没有安装

        sudo apt-get install git

        安装完之后,测试是否安装成功:

        git --version

        接着

        git config --global user.name "your name"

        git config --global user.email "your email"

        

原文地址:https://www.cnblogs.com/xshang/p/3952005.html