首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

git alias 等 gitconfig的一些配备

2013-01-17 
git alias 等 gitconfig的一些配置[alias]st statusci commitbr branchco checkoutdf difflg

git alias 等 gitconfig的一些配置

[alias]  st = status  ci = commit  br = branch  co = checkout  df = diff  lg = log -p

如果想要把 rebase 當做 git pull 的預設值,可以在專案的 .git/config 加上

[branch "master"]  remote = origin  merge = refs/heads/master  rebase = true

也可以直接加到 ~/.gitconfig 讓所有的 tracked branches 都自動套用這個設定:

[branch]    autosetuprebase = always

编辑 .gitconfig 文件

热点排行