脚本中的Git克隆
问题描述:
我正在写一个bash脚本,我需要克隆一个git代表。我该如何做到这一点,当它出现时,它会自动将值yes放入?脚本中的Git克隆
==============================================================================
= NOTICE =
==============================================================================
= RVM has encountered a new or modified .rvmrc file in the current directory =
= This is a shell script and therefore may contain any shell commands. =
= =
= Examine the contents of this file carefully to be sure the contents are =
= safe before trusting it! (Choose v[iew] below to view the contents) =
==============================================================================
Do you wish to trust this .rvmrc file? (/root/The-Three-Little-Pigs-Siri-Proxy/.rvmrc)
y[es], n[o], v[iew], c[ancel]>
的Ubuntu 10.10 32位
答
在你的home目录创建一个文件,.rvmrc
并添加下面一行到它:
rvm_trust_rvmrcs_flag=1
或信托与文件:
rvm rvmrc trust /root/The-Three-Little-Pigs-Siri-Proxy/
+0
/家或我克隆它的目录? – awmusic12635 2012-02-28 00:37:53
+1
我认为他的意思是'/ home/username',或'〜' – 2012-02-28 01:49:09
什么RVM,为什么它与你的Git干扰克隆? – 2012-02-28 00:27:58
@GregHewgill - 它是Ruby版本管理器。脚本可能会克隆并放入其中。如果该文件夹具有.rvmrc文件,则会触发rvm挂钩。无论如何,删除了git标签并添加了rvm。 – manojlds 2012-02-28 00:37:48
正确,脚本克隆然后将其放入它。 – awmusic12635 2012-02-28 00:39:22