在Windows上忽略Git存储库中的目录 [英] Ignoring directories in Git repositories on Windows

查看:94
本文介绍了在Windows上忽略Git存储库中的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows上使用msysgit忽略Git中的目录或文件夹?

How can I ignore directories or folders in Git using msysgit on Windows?

推荐答案

在项目目录中创建一个名为.gitignore的文件.通过在文件中输入目录名称(带斜杠)来忽略目录:

Create a file named .gitignore in your project's directory. Ignore directories by entering the directory name into the file (with a slash appended):

dir_to_ignore/

更多信息,请此处.

这篇关于在Windows上忽略Git存储库中的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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