Git LFS-如何使用一个命令跟踪多种文件类型 [英] Git LFS - how to track multiple file types with one command

查看:382
本文介绍了Git LFS-如何使用一个命令跟踪多种文件类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Git LFS网站和文档中看到了以下命令:

I see this command listed on the Git LFS website and documentation:

git lfs track "*.psd"

我的项目中有几种文件类型,我希望使用LFS进行跟踪,并且在以后的项目中将要跟踪所有这些相同的文件类型.我希望能够粘贴一个命令来跟踪所有这些扩展,这可能吗?

I have several file types in my project that I want to track with LFS, and will want to track all these same file types in future projects. I would like to be able to paste a single command to track all these extensions, is this possible?

推荐答案

经过一些实验,我发现通过提供多个参数是可行的:

After some experimentation I found this was doable by providing multiple arguments:

git lfs track "*.jpg" "*.png"

这将同时跟踪jpg文件和png文件

This will track both jpg files and png files

这篇关于Git LFS-如何使用一个命令跟踪多种文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆