浏览代码

Add git 'sinit' alias: init/update/checkout via submodule command

Emmanuel Bouthenot 13 年之前
父节点
当前提交
53f9a4e054
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .gitconfig

+ 1 - 0
.gitconfig

@@ -17,6 +17,7 @@
     ls = ls-files
     ign = ls-files -o -i --exclude-standard
     unstage = reset HEAD
+    sinit = ! git submodule init && git submodule update && git submodule foreach 'git checkout master'
     spull = submodule foreach 'git pull'
 
 [color]