码迷,mamicode.com
首页 > 其他好文 > 详细

git -C

时间:2016-09-03 19:53:36      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:

https://git-scm.com/docs/git

-C <path>

Run as if git was started in <path> instead of the current working directory.

When multiple -C options are given, each subsequent non-absolute -C <path> is interpreted relative to the preceding -C <path>.

This option affects options that expect path name like --git-dir and --work-tree in that their interpretations of the path names would be made relative to the working directory caused by the -Coption.

For example the following invocations are equivalent:

git --git-dir=a.git --work-tree=b -C c status
git --git-dir=c/a.git --work-tree=c/b status

 

 

 

git -C

标签:

原文地址:http://www.cnblogs.com/chucklu/p/5837692.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!