美文网首页
Git 配置文件

Git 配置文件

作者: jingr1 | 来源:发表于2017-09-05 19:52 被阅读0次

.gitconfig

[user]
    name = username
    email = username@163.com
[branch]
    autosetuprebase = always

[diff]
    tool = bc3
[difftool]
    prompt = false
[difftool "bc3"]
    cmd = \"c:/program files (x86)/beyond compare 3/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" -expand -solo
    #path = c:/program files (x86)/beyond compare 3/BCompare.exe
[merge]
    tool = bc4
    #conflictstyle = diff3
[mergetool]
    prompt = false
    keepBackup = false
[mergetool "bc4"]
    cmd = \"C:/Program Files/Beyond Compare 4/BCompare.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
    trustExitCode = true
[alias]
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    lgg = log --graph --oneline --decorate --all
    pg = remote prune origin
    dt = !git --work-tree=. difftool -d
    #dt = !git difftool -d
    sup = submodule update --init --recursive
    st = status
    co = checkout
    mg = merge --no-ff -m 
    cm = commit -a -m
    ci = commit
    br = branch
    unstage = reset HEAD
    discard = checkout -- 
  
[core]
    autocrlf = true
    excludesfile = C:/Users/username/.gitignore_global

[gui]
    recentrepo = E:/python

[pull]
    rebase = true

相关文章

  • Git命令

    Git命令大全git config配置 Git 的相关参数。 Git 一共有3个配置文件: 仓库级的配置文件:在仓...

  • git命令

    Git命令大全git config配置 Git 的相关参数。Git 一共有3个配置文件: 仓库级的配置文件:在仓库...

  • git 配置

    显示当前的Git配置 $ git config --list 编辑Git配置文件 $ git config -e ...

  • Git命令大全

    git config 配置 Git 的相关参数。 Git 一共有3个配置文件: 仓库级的配置文件:在仓库的 .gi...

  • Git命令大全

    git config 配置 Git 的相关参数。 Git 一共有3个配置文件: 仓库级的配置文件:在仓库的 .gi...

  • Git命令大全

    git config 配置 Git 的相关参数。Git 一共有3个配置文件:1. 仓库级的配置文件:在仓库的 .g...

  • learn.git.md

    reference: 廖雪峰git教程 and git-scm-book 配置文件 配置文件放哪了?每个仓库的Gi...

  • git全局配置

    查看git全局配置 git config --global -l 编辑配置文件 git config --glob...

  • git 分布式版本控制系统

    git 教程 一. git config git config -e (打开当前项目的配置文件) git conf...

  • Git常用基本操作命令指南

    Git环境配置 一、 全局配置 1. 配置文件 git全局配置文件.gitconfig默认在当前系统用户文件夹下,...

网友评论

      本文标题:Git 配置文件

      本文链接:https://www.haomeiwen.com/subject/cqjpjxtx.html