在Windows上忽略Git仓库中的目录 [英] Ignoring directories in Git repos on Windows

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

问题描述

如何在Windows上使用msysgit忽略Git中的目录或文件夹? 创建一个名为<$ c $的文件c> .gitignore 在你的项目目录中。通过在文件中输入目录名(通过附加斜线)忽略目录:

  dir_to_ignore / 

更多资讯此处


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

解决方案

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/

More info here.

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

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