[] Git Git Installation and Configuration

  Git is a distributed version control system open source, can be effective, high-speed processing from very small to very large project version management. The foreign and domestic Coding is GitHub project hosting platform.

  This example uses the environment: Linux environment (CentOS 7.4)

installation

  1, to see whether the system has been installed git

    View the version number of the command: git --verison

  2, yum install git

    Command: yum -y install git

  3, uninstall git

    Command: yum the Remove git

Configuration

  config system arranged level global (user level) and local (current repository) provided three start system- "global-" local configuration will cover the top bottom configuration were used --system / global / local configuration file to locate

  1, config configuration instructions

    Command: git config

  2, view the system config configuration information (file: / etc / gitconfig, you can not create your own)

    Command: git config --list --system

  3, global view global configuration information (file: ~ / .gitconfig)

    Command: git config --list --global

  4. Check local local configuration information (file: git repository /.git/config)

    命令:git config --local --list

  5, set the configuration information (format: git config - {level} {key} {value})

    Global user name

    命令:git config --global user.name "yourname"

  6, to check the configuration (format: git config - {level} {key})

    See the global username

    Command: git config --global user.name

  7, set the global user mailboxes

    命令:git config --global user.email "[email protected]"

  

  

Guess you like

Origin www.cnblogs.com/h--d/p/11183911.html