【发布时间】:2015-01-09 15:44:29
【问题描述】:
我真的是批处理文件脚本的新手,我设法克隆了我想要的 repo(我认为),但我不确定如何设置保存目录。我已经看到了这个 SO 帖子 How do I execute several git commands in a batch file without terminating after the first command? 但恐怕没有回答我的问题。这是我目前所拥有的:
pullrepo.bat:
start "" "C:\Program Files (x86)\Git\bin\git.exe" clone git@bitbucket.org:BLAHBLAHBLAH.git
pause
当我查看显示所有内容的 bat 脚本(和 git 窗口)时,似乎一切正常,但我找不到存储库本地副本的文件夹(通过搜索文件夹名称),更不用说设置本地按我的意愿保存位置。最终我的目标是添加一个推送功能,提示用户在其中一个窗口(git 或 bat)内输入提交消息
【问题讨论】:
标签: git batch-file