Skip to content

Instantly share code, notes, and snippets.

@luxuia
Created September 4, 2018 10:03
Show Gist options
  • Select an option

  • Save luxuia/1d68b478b52f0c7d704314bc2edad6e8 to your computer and use it in GitHub Desktop.

Select an option

Save luxuia/1d68b478b52f0c7d704314bc2edad6e8 to your computer and use it in GitHub Desktop.
mkdir ../week_change
cp -rp --parents `git diff --name-only bbbb HEAD` ../week_change/ ----从上次之后的master上的修改
-- 清理目录
cd ../week_change/
rm res_ui -r
rm res_ui2/data/final_data -r
rm res_ui2/ui2.lua
rm res_fx/data/fx3 -r
rm res_fx/meta -r
rm res_fx/fx4.lua -r
rm texpack_data -r
mv res_ui2 res_ui
mv res_fx/data/fx4 res_fx/data/fx3
find . | grep '\./.*\..*' > ../changed_file -- 修改文件列表
-- 切到gangtai分支
mkdir ../gangtai_change
cp -rp --parents `cat ../changed_file` ../gangtai_change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment