Git使用SourceTree打包文件,配置导出代码包 | 适用mac & windows
前言: SourceTree默认没有打包功能,使用SourceTree自定义功能 脚本 及 php脚本实现导出功能
-
Mac 使用 shell 脚本实现
-
实现效果
- 配置方式 需要配置 借助php脚本 及 shell脚本实现
export.php
<?php
date_default_timezone_set('Asia/Shanghai');
if($argc == 0)
{
exit('Nothing to copy');
}
define('DS', DIRECTORY_SEPARATOR);
$source_dir = '/data/www/xxx';
$exp_dir = '/data/www/xx/xx';
function