gpt4 book ai didi

git - 使用子目录中的 git archive 来归档整个项目树

转载 作者:行者123 更新时间:2023-11-28 20:36:48 24 4
gpt4 key购买 nike

我厌倦了说 (cd ../../.. && git archive HEAD) | (cd/var/www/html/&& tar xf -) #testing-on-prod。有没有办法删除初始的 cd,指定我想要归档整个树而不仅仅是当前的工作目录?

最佳答案

也许只是 .bashrc 中的一个快捷函数?

<shortcut_name> () { cd <path> ; <other command> ; }

关于git - 使用子目录中的 git archive 来归档整个项目树,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51365715/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com