如何添加Linux的可执行文件到的.gitignore? [英] How to Add Linux Executable Files to .gitignore?

查看:355
本文介绍了如何添加Linux的可执行文件到的.gitignore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何添加Linux的可执行文件,而不给他们一个明确的扩展,而不将它们放置在一个特定的或/ bin目录下的.gitignore?大多数被命名一样,从他们所没有的.C扩展编译C文件。

How do you add linux executable files to .gitignore without giving them an explicit extension and without placing them in a specific or /bin directory? Most are named the same as the C file from which they were compiled without the ".c" extension.

推荐答案

你能忽略所有,但源$ C ​​$ C文件?

Can you ignore all, but source code files?

例如:

*
!*.c
!Makefile

这篇关于如何添加Linux的可执行文件到的.gitignore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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