`
san_yun
  • 浏览: 2637756 次
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

gitconfig

    博客分类:
  • git
 
阅读更多

git 配置,新建.gitconfig,放在~/.gitconfig 目录

 

[core]
	excludesfile = /Users/jiangyunpeng/.gitignore_global
	quotepath = false
[difftool "sourcetree"]
	cmd = opendiff \"$LOCAL\" \"$REMOTE\"
	path =
[mergetool "sourcetree"]
	cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
	trustExitCode = true
[alias]
    st = status
    co = checkout
    br = branch
    mg = merge
    ci = commit
    md = commit --amend
    dt = difftool
    mt = mergetool
    last = log -1 HEAD
    cf = config
    line = log --oneline
    latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]'

    ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad %C(red)%d %C(reset)%s %C(green)[%cn]\" --decorate --date=short
    hist = log --pretty=format:\"%C(yellow)%h %C(red)%d %C(reset)%s %C(green)[%an] %C(blue)%ad\" --topo-order --graph --date=short
    type = cat-file -t
    dump = cat-file -p
[push]
	default = simple
[branch]
	autosetuprebase = always
[user]
	name = yunpeng.jiangyp
	email = yunpeng.jiangyp@alibaba-inc.com
[gc]
	autoDetach = false

 

分享到:
评论

相关推荐

    git config 配置包含将git的默认编辑器修改为vim

    git config 配置 包含将git的默认编辑器修改为vim

    PyPI 官网下载 | gitconfig-0.0.35.tar.gz

    标题中的"PyPI 官网下载 | gitconfig-0.0.35.tar.gz"表明这是一个从Python Package Index(PyPI)官方源下载的压缩包,名为`gitconfig-0.0.35.tar.gz`。`gitconfig`是这个Python库的名字,版本号为0.0.35,它很可能...

    git config

    pads vx 破解文件

    minghu6 git config

    git config minghu6

    node-gitconfiglocal:将.gitconfig文件解析为有用的数据结构

    var gitconfig = require ( 'gitconfiglocal' ) ; gitconfig ( './' , function ( err , config ) { console . log ( config ) ; /* prints: { core: { repositoryformatversion: '0', filemode: true, bare:...

    gitconfig:我的.gitconfig

    我的.gitconfig,请参阅gitconfig以获取内联注释。 有些是我经常使用的东西。 我偶尔使用很多东西,因此只记录了它们。通用工具git brage 显示按上次提交日期排序的git分支的彩色列表。 可以将其视为“ git branch”...

    Git config 配置

    Git config主要用于设置用户信息、编辑器偏好、认证方式等,确保在使用Git进行代码版本管理时能够高效且符合个人习惯。下面我们将深入探讨Git配置的各个方面。 1. **用户信息配置** 在开始使用Git时,首先需要配置...

    Git-2.10.2-64-bit.exe

    每一个级别的配置都会覆盖上层的相同配置,所以 .git/config 里的配置会覆盖 /etc/gitconfig 中的同名变量。 在 Windows 系统上,Git 会找寻用户主目录下的 .gitconfig 文件。主目录即 $HOME 变量指定的目录,一般都...

    git的配置文件

    `.gitconfig`文件通常位于用户的主目录下,例如在Unix/Linux系统中是`~/.gitconfig`,在Windows系统中是`%USERPROFILE%\.gitconfig`。这个文件使用INI格式,由一系列键值对组成,每一项都代表一个Git的设置。 以下...

    gitconfig-sublimetext:.gitconfig和.gitignore文件的Sublime Text 2语言文件

    为.gitconfig和.gitignore文件提供一些简单的设置。 安装 提供了此功能。 打开命令面板,然后选择“软件包控制:安装软件包”,然后搜索“ Git Config”,您就完成了! 您也可以通过将其克隆到安装的Packages文件夹...

    sixarm_git_gitconfig:SixArm.com:Git:gitconfig文件,别名,颜色,分支等

    `gitconfig`文件是Git的核心配置文件,用于设置用户偏好、别名、颜色输出等个性化选项。在这个主题中,我们将深入探讨`gitconfig`文件,以及如何利用它来优化Git的使用体验。 首先,`gitconfig`文件分为系统级、...

    gitconfig:个人配置和东西

    用您的名称/电子邮件更改~/.gitconfig并提交更改 您可能还会喜欢一些额外的东西: ack-grep在VIM中用作grep命令。 只需安装ack-grep软件包 更改为ZSH和OhMyZSH: sudo apt-get install zsh和chsh -s /bin/zsh ...

    git入门.txt

    git config --global user.name " " git config --global user.email " " 初始化 git init 将文件添加到库 git add -A 提交到库 git commit -m " " 初始化仓库位置 git remote add origin 推送到云端 git push -u -...

    gitlab实践教程使用git config进行相关的配置操作

    用户级别的配置文件存储在用户的主目录下,如Unix/Linux系统中的~/.gitconfig文件,它对特定用户的所有项目生效。项目级别的配置文件则是存储在每个Git仓库的.git目录中的config文件,对当前仓库生效。由于优先级...

    git-config:将我的Git Config与GitHub同步

    英语要同步本地存储库和.gitconfig,请使用: Ubuntu: ln ./git-config/.gitconfig .gitconfig Windows: mklink .gitconfig ./git-config/.gitconfig西班牙语Para Vincular El Repositorio Local Con .gitconfig...

    gitconfig-switch-proxy

    `gitconfig-switch-proxy` 提示我们这个主题可能与配置Git代理有关,尤其是在网络环境受限,需要通过代理服务器访问Git服务时。在JavaScript开发环境中,理解如何设置和切换Git的代理配置是非常重要的,这有助于...

    git-config-repository

    `git-config-repository`是Git中的一个重要命令,用于配置和管理Git仓库的设置。本文将深入探讨`git-config`命令及其在仓库级别的应用。 Git配置分为三个级别:用户级、系统级和仓库级。用户级配置适用于当前用户的...

    atom-git-difftool:在.gitconfig中配置的差异工具中打开当前项目

    在.gitconfig中配置的差异工具中打开当前项目或文件。 基本上,它在当前项目上运行git difftool 。 用法 从命令面板运行Git Difftool: Diff File差异Git Difftool: Diff File ,或使用⌥⌃D差异当前打开的文件。 ...

    git相关资料

    git 和 svn 区别:http://www.oschina.net/news/12542/git-and-svn git的基本命令: ...git config --global user.email XXX 用户邮箱 git config –list #查看用户信息 3, 向git库中添加或删除文件 。。。。。。

    git代码上传流程文档

    git config --global user.name “xxx” git config --global user.email “xxx@qq.com” 查看配置信息 git config --list git config user.name 在本地初始化一个Git仓库 git init 从远程仓库克隆 git clone ...

Global site tag (gtag.js) - Google Analytics