我刚刚开始使用 git。我一直在使用https://github.com/Danimoth/gitattributes中的示例为我的各种项目(主要是 bash 和 python 脚本)组合一个 gitattributes 文件。我的问题是我的大多数 bash 脚本都没有文件扩展名。有没有我可以用来明确选择这些的模式(例如过滤器)?或者使用 .sh 扩展名重命名它们会更容易吗?
问问题
597 次
我刚刚开始使用 git。我一直在使用https://github.com/Danimoth/gitattributes中的示例为我的各种项目(主要是 bash 和 python 脚本)组合一个 gitattributes 文件。我的问题是我的大多数 bash 脚本都没有文件扩展名。有没有我可以用来明确选择这些的模式(例如过滤器)?或者使用 .sh 扩展名重命名它们会更容易吗?