GitHub实战系列~3.提交github的时候过滤某些文件 2015-12-10

创建项目的时候在最下面,添加过滤器,选择vs 或者把 .gitignore 拷贝一份放git项目文件夹的根目录

建完就有两个文件了,.gitignore 是过滤文件

vs的过滤规则贴一下:

## Ignore Visual Studio temporary files, build results, and

## files generated by popular Visual Studio add-ons.

# User-specific files

*.suo

*.user

*.userosscache

*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)

*.userprefs

# Build results

[Dd]ebug/

[Dd]ebugPublic/

[Rr]elease/

[Rr]eleases/

x64/

x86/

build/

bld/

[Bb]in/

[Oo]bj/

# Visual Studo 2015 cache/options directory

.vs/

# MSTest test Results

[Tt]est[Rr]esult*/

[Bb]uild[Ll]og.*

# NUNIT

*.VisualState.xml

TestResult.xml

# Build Results of an ATL Project

[Dd]ebugPS/

[Rr]eleasePS/

dlldata.c

*_i.c

*_p.c

*_i.h

*.ilk

*.meta

*.obj

*.pch

*.pdb

*.pgc

*.pgd

*.rsp

*.sbr

*.tlb

*.tli

*.tlh

*.tmp

*.tmp_proj

*.log

*.vspscc

*.vssscc

.builds

*.pidb

*.svclog

*.scc

# Chutzpah Test files

_Chutzpah*

# Visual C++ cache files

ipch/

*.aps

*.ncb

*.opensdf

*.sdf

*.cachefile

# Visual Studio profiler

*.psess

*.vsp

*.vspx

# TFS 2012 Local Workspace

$tf/

# Guidance Automation Toolkit

*.gpState

# ReSharper is a .NET coding add-in

_ReSharper*/

*.[Rr]e[Ss]harper

*.DotSettings.user

# JustCode is a .NET coding addin-in

.JustCode

# TeamCity is a build add-in

_TeamCity*

# DotCover is a Code Coverage Tool

*.dotCover

# NCrunch

_NCrunch_*

.*crunch*.local.xml

# MightyMoose

*.mm.*

AutoTest.Net/

# Web workbench (sass)

.sass-cache/

# Installshield output folder

[Ee]xpress/

# DocProject is a documentation generator add-in

DocProject/buildhelp/

DocProject/Help/*.HxT

DocProject/Help/*.HxC

DocProject/Help/*.hhc

DocProject/Help/*.hhk

DocProject/Help/*.hhp

DocProject/Help/Html2

DocProject/Help/html

# Click-Once directory

publish/

# Publish Web Output

*.[Pp]ublish.xml

*.azurePubxml

# TODO: Comment the next line if you want to checkin your web deploy settings

# but database connection strings (with potential passwords) will be unencrypted

*.pubxml

*.publishproj

# NuGet Packages

*.nupkg

# The packages folder can be ignored because of Package Restore

**/packages/*

# except build/, which is used as an MSBuild target.

!**/packages/build/

# Uncomment if necessary however generally it will be regenerated when needed

#!**/packages/repositories.config

# Windows Azure Build Output

csx/

*.build.csdef

# Windows Store app package directory

AppPackages/

# Others

*.[Cc]ache

ClientBin/

[Ss]tyle[Cc]op.*

~$*

*~

*.dbmdl

*.dbproj.schemaview

*.pfx

*.publishsettings

node_modules/

bower_components/

# RIA/Silverlight projects

Generated_Code/

# Backup & report files from converting an old project file

# to a newer Visual Studio version. Backup files are not needed,

# because we have git ;-)

_UpgradeReport_Files/

Backup*/

UpgradeLog*.XML

UpgradeLog*.htm

# SQL Server files

*.mdf

*.ldf

# Business Intelligence projects

*.rdl.data

*.bim.layout

*.bim_*.settings

# Microsoft Fakes

FakesAssemblies/

# Node.js Tools for Visual Studio

.ntvs_analysis.dat

# Visual Studio 6 build log

*.plg

# Visual Studio 6 workspace options file

*.opt

原文发布于微信公众号 - 我为Net狂(dotNetCrazy)

原文发表时间:2015-12-11

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏大内老A

MS Enterprise Library 5.0发布!!

What is Enterprise Library Enterprise Library is a collection of reusable softwa...

18750
来自专栏张善友的专栏

每周.NET前沿技术文章摘要(2017-05-17)

汇总国外.NET社区相关文章,覆盖.NET ,ASP.NET等内容,本期包含性能分析这一主题内容

41200
来自专栏.NET开发者社区

​(码友推荐)2018-09-18 .NET及相关开发资讯速递

1.Redis 桌面管理工具 RedisDesktopManager 0.9.6 发布

12850
来自专栏跟着阿笨一起玩NET

Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package

Severity Code Description Project File Line Suppression State Error This project...

25320
来自专栏walterlv - 吕毅的博客

Support Horizontal Scrolling of TouchPad in WPF Application

发布于 2017-11-23 14:09 更新于 2018-08...

11410
来自专栏哈雷彗星撞地球

RunLoop总结:RunLoop的应用场景(四)App卡顿监测

今天要介绍的RunLoop使用场景很有意思,在做长期项目,需要跟踪解决用户问题非常有用。 使用RunLoop 监测主线程的卡顿,并将卡顿时的线程堆栈信息保存下...

15020
来自专栏黑白安全

windows命令执行漏洞不会玩? 看我!

经常有小伙伴碰到了命令执行漏洞不会玩,比如mssql注入点的命令执行,怎么来获取一个meterpreter?这个时候,就需要想办法来获取了,关于命令行来执行远程...

26740
来自专栏林德熙的博客

WPF popup置顶 另外的已知问题

http://www.cnblogs.com/Leaco/p/3164394.html

20130
来自专栏绿巨人专栏

C# on Visual Studio Code

33840
来自专栏c#开发者

BizTalk 异常解决方法

SSOSQL.dll regasm C:\Program Files\Common Files\Enterprise Single Sign-On\SSOSQ...

36960

扫码关注云+社区

领取腾讯云代金券