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

查看:20
本文介绍了在 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天全站免登陆