《Git 系列》 - Ignoring File

任何语言,一些文件是不能提交的。

Java开发的项目:*.class是不能提交的

C#开发的项目:*.dll,*.user,obj/,bin/是不能提交的

本人查阅了官方资料,原文不能就不翻译了。

105631_zkWL_2330610.png

Ignore Type

 

Ignore item(s) only in containing folder(s)

Only ignore the selected pattern(s) within that folder(s). 

Ignore item(s) recursively
Ignore items with the selected pattern(s) in that folder(s) and child folder(s). 

Ignore File 

.gitignore in the repository root
Write the ignore entries in .gitignore in the repository root. This allows you to synchronize the ignore list with remote repository. 

.gitignore in the containing directories of the items
Write the ignore entries in .gitignore in the containing directories of the items. This allows you to synchronize the ignore list with remote repository. 

.git/info/exclude
Write the ignore entries in .git/info/exclude in repository metadata. This allows you to store the ignore list locally, but cannot synchronize with remote repository. 


如以下针对某个C#项目的.gitignore文件

/WinForm-ProgressBar/*.user
/WinForm-ProgressBar/bin/Debug
/WinForm-ProgressBar/obj/Debug

 

转载于:https://my.oschina.net/kimisme/blog/1606500

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值