Skip to content

Instantly share code, notes, and snippets.

@vmandic
Last active June 14, 2024 18:34
Show Gist options
  • Save vmandic/ac2ecc9c24f6899ee0ec46e4ce444a0e to your computer and use it in GitHub Desktop.
Save vmandic/ac2ecc9c24f6899ee0ec46e4ce444a0e to your computer and use it in GitHub Desktop.
A default .NET Core project .gitignore file - or just type `dotnet new gitignore`
# From .NET Core 3.0 you can use the command: `dotnet new gitignore` to generate a customizable .gitignore file
*.swp
*.*~
project.lock.json
.DS_Store
*.pyc
# Visual Studio Code
.vscode
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/
msbuild.log
msbuild.err
msbuild.wrn
# Visual Studio 2015
.vs/
@shaili-shah
Copy link

From Dot.Net core 3.0, .gitignore can be easily added by simple command. Run "dotnet new gitignore" on project root folder.

This works perfectly! thanks a ton!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment