Skip to content

Instantly share code, notes, and snippets.

@octocat
Created February 27, 2014 19:38
Show Gist options
  • Select an option

  • Save octocat/9257657 to your computer and use it in GitHub Desktop.

Select an option

Save octocat/9257657 to your computer and use it in GitHub Desktop.
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
@VintiKkk

Copy link
Copy Markdown

@VintiKkk

Copy link
Copy Markdown

@helloindiadevops

Copy link
Copy Markdown

Thank you

@CxrlosKenobi

Copy link
Copy Markdown

Nice! I "git" it

@DMC1998

DMC1998 commented Sep 9, 2021

Copy link
Copy Markdown

Really helped me. Thank you so much

@HellishBro

Copy link
Copy Markdown

I GIT it.

@Ka5117737

Copy link
Copy Markdown

Plz personally my profile.
The very best best

@Codemaster-ctrl

Codemaster-ctrl commented Nov 11, 2021 via email

Copy link
Copy Markdown

@code-victor-now

Copy link
Copy Markdown

Than you octocat! I love you

@Boss-1s

Boss-1s commented Jan 5, 2022

Copy link
Copy Markdown

nice job @octocat that really helped

ghost commented Jan 7, 2022

Copy link
Copy Markdown

I "git" it now! Thanks octocat

@Nuggett57

Copy link
Copy Markdown

git now! octocat

@didvc

didvc commented Feb 2, 2022

Copy link
Copy Markdown

This is unexpectedly nice.

@dark-teal-coder

Copy link
Copy Markdown

Why .class also included? Isn't it part of the source code?

@Latrice4u

Copy link
Copy Markdown

tags should be a good addition here

ThanksPaypaymetheshit2000@outlook.com #

@jgphilpott

jgphilpott commented Mar 25, 2022

Copy link
Copy Markdown

This is great thanks! Also some more good stuff here: https://github.com/github/gitignore

@martin-braun

martin-braun commented Apr 5, 2022

Copy link
Copy Markdown

@elijahr2411 No, this is not for specific environments / frameworks / IDEs, this is very broad on purpose, only featuring files that must not be committed under any circumstances, such as OS specific system files or compiled / compressed files.

Use this and combine it with one of those: https://github.com/github/gitignore (thanks for the link, @jgphilpott)

@Latrice4u

Latrice4u commented Apr 5, 2022 via email

Copy link
Copy Markdown

@Tr1985

Tr1985 commented Apr 14, 2022

Copy link
Copy Markdown

Chúng ta có thể bỏ qua tệp web.Config bằng tệp gitignore không

@kimfom01

Copy link
Copy Markdown

lol thanks

@Littlemama6130

Copy link
Copy Markdown

@Littlemama6130

Copy link
Copy Markdown

@Julioarita

Copy link
Copy Markdown

Totally usefull!!

@Alipatiras

Copy link
Copy Markdown

سلام ،من فکر می کنم ،هر گاه می‌خواهم پروفایل را باز کنم تا اطلاعاتم را وارد کنم به جایی جز همانی که می خواهم هدایت می شوم چند مورد اتفاق افتاده که متوجه کلاهبرداری شده ام و دیگر ادامه ندادم چگونه ایمن کنم

@67788804

67788804 commented Aug 8, 2022

Copy link
Copy Markdown

c'est Bon vraiment.merci beaucoup

@olami1223

Copy link
Copy Markdown

Uploading ABAC4D6F-F69A-4637-812D-7802D2FD9B51.jpeg…

@MdMohsin98

Copy link
Copy Markdown

So basically the files with these extensions would be ignored(will not compile). How can I specify only the files that should be compiled?

@SIunits

SIunits commented Dec 25, 2022

Copy link
Copy Markdown

Very useful

@vinyll

vinyll commented Dec 25, 2022

Copy link
Copy Markdown

Hey, you should consider not setting this file in your projet but in your profile.
The gitignore file within your project should be specific to your project, its language, framework…
Anything that is specific to your code editor, you OS… should be out of that scope.
See http://vinyll.scopyleft.fr/using-gitignore-the-right-way/ for further understanding.

@Limlouis097

Copy link
Copy Markdown

little late but __pycache__ might be a good addition

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