#!/bin/bash # #*************************************************************************** # Author: liwanggui # Email: liwanggui@163.com # Date: 2023-03-08 # FileName: git.sh # Description: git command configure # Copyright (C): 2023 All rights reserved #*************************************************************************** # function install_git() { type yum &>/dev/null && yum install -y git ;return type apt &>/dev/null && apt install -y git } # 配置 github 加速 git config --global url."https://gh.wglee.org/github.com".insteadOf "https://github.com" # 配置用户信息 git config --global user.name liwanggui git config --global user.email liwanggui@163.com # 存储用户名密码 ~/.git-credentials git config --global credential.helper store