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
@srabon664

Copy link
Copy Markdown

Ok

@qwerty13

Copy link
Copy Markdown

For Excluding Temp and Output Directories, We Can use This:

# Build results #
###################
[Oo]utput/
[Tt]emp/

@Rafka931

Rafka931 commented Dec 9, 2023

Copy link
Copy Markdown

I have created a fork to ignore these extra files:
*.pyo, *.pyc, *~, *.bak, and *.swp, here.

@diegillos

Copy link
Copy Markdown

Live

@chrismcintosh78

Copy link
Copy Markdown

what about folders we want to ignore?

@syawal400

Copy link
Copy Markdown

Kuakuakaukauakua

@Andrew237wilson

Copy link
Copy Markdown
<!DOCTYPE html>
<html>
<head>
    <title>23 Seven Recovery</title>
    <!-- CSS stylesheets and other dependencies -->
    <link rel="stylesheet" type="text/css" href="styles.css">
    <script src="main.js"></script>
</head>
<body>
    <!-- Header section -->
    <header>
        <nav>
            <!-- Logo and navigation menu -->
        </nav>
    </header>

    <!-- Hero section -->
    <section id="hero">
        <!-- Hero content and call to action buttons -->
    </section>

    <!-- Success Stories section -->
    <section id="success-stories">
        <!-- Display success stories with pictures and stories -->
        <!-- Include a form for users to submit their own success stories -->
    </section>

    <!-- Helpful Information section -->
    <section id="helpful-information">
        <!-- Display helpful information related to recovery and life-changing -->
        <!-- Include a form for users to submit helpful information -->
    </section>

    <!-- Video Chat section -->
    <section id="video-chat">
        <!-- Integrate a video chat platform for users to connect with each other -->
        <!-- Provide options for users to request video chats in times of need -->
    </section>

    <!-- Payment section -->
    <section id="payment">
        <!-- Include payment options such as credit cards, Cash App, PayPal, Apple Pay, Google Pay -->
        <!-- Provide a form for users to complete payments -->
    </section>

    <!-- Personal Account section -->
    <section id="personal-account">
        <!-- Include a link to your personal account where you can manage finances -->
        <!-- Provide options for users to send, receive, and obtain money -->
        <!-- Include a form to link personal accounts -->
    </section>

    <!-- Footer section -->
    <footer>
        <!-- Footer content and links -->
    </footer>
</body>
</html>

@Myataungmyo

Copy link
Copy Markdown

@Myataungmyo

Copy link
Copy Markdown

Uploading IMG_20240240_045810768.jpg…

@Gangstablue777

Copy link
Copy Markdown

Nice

@thedinocoder

Copy link
Copy Markdown

ignore :)

@milan-sahana

Copy link
Copy Markdown

added a line

.idea

but not ignoring '.idea/php.xml' file
any solution ?

@yeetssite

Copy link
Copy Markdown

sup

@Benkhardt

Benkhardt commented May 30, 2024

Copy link
Copy Markdown

added a line

.idea

but not ignoring '.idea/php.xml' file any solution ?

Just add .gitignore to all directories OR if you wnat to ignore a file constantly in your repo just open ".git/info/exclude" and add the certain file(s) to it:
https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#excluding-local-files-without-creating-a-gitignore-file

@HanzadeLK

Copy link
Copy Markdown

Thank you

@Huellith

Copy link
Copy Markdown

@Yanick4

Yanick4 commented Jul 17, 2024

Copy link
Copy Markdown

Merci

@Shahramf021

Copy link
Copy Markdown

Yes

@Gabrielvsiqueira

Copy link
Copy Markdown

Nailed It!

@Nimasoy

Nimasoy commented Oct 1, 2024

Copy link
Copy Markdown

Cool

@JesuscoinsIII

Copy link
Copy Markdown

It is often useful to add xcuserdata to avoid having one user's machine randomly perturb Xcode debugging switches every time there is a git pull, or to be alerted that changing that stuff will necessitate a push. We also don't really need to see our collaborators xcuserdata.

Klkl121aaaa

👍

@JesuscoinsIII

Copy link
Copy Markdown

So should I add it to my system too then?

@na949

na949 commented Oct 9, 2024

Copy link
Copy Markdown

ผมไม่ได้ปิดกั้นหรือลบพวกภาษา ั

@na949

na949 commented Oct 9, 2024

Copy link
Copy Markdown

ผมไม่เข้าใจว่าผมลบปิดกั้นอะไรไม่เข้าใจใน

@na949

na949 commented Oct 9, 2024

Copy link
Copy Markdown

ผมเข้าเน็ตไปก็ทำตามเข้าในyouthou

@Hamidasl

Copy link
Copy Markdown

sondosaabed-patch-1

@elenaamtz

Copy link
Copy Markdown
<!DOCTYPE html>
<html>
<head>
    <title>23 Seven Recovery</title>
    <!-- CSS stylesheets and other dependencies -->
    <link rel="stylesheet" type="text/css" href="styles.css">
    <script src="main.js"></script>
</head>
<body>
    <!-- Header section -->
    <header>
        <nav>
            <!-- Logo and navigation menu -->
        </nav>
    </header>

    <!-- Hero section -->
    <section id="hero">
        <!-- Hero content and call to action buttons -->
    </section>

    <!-- Success Stories section -->
    <section id="success-stories">
        <!-- Display success stories with pictures and stories -->
        <!-- Include a form for users to submit their own success stories -->
    </section>

    <!-- Helpful Information section -->
    <section id="helpful-information">
        <!-- Display helpful information related to recovery and life-changing -->
        <!-- Include a form for users to submit helpful information -->
    </section>

    <!-- Video Chat section -->
    <section id="video-chat">
        <!-- Integrate a video chat platform for users to connect with each other -->
        <!-- Provide options for users to request video chats in times of need -->
    </section>

    <!-- Payment section -->
    <section id="payment">
        <!-- Include payment options such as credit cards, Cash App, PayPal, Apple Pay, Google Pay -->
        <!-- Provide a form for users to complete payments -->
    </section>

    <!-- Personal Account section -->
    <section id="personal-account">
        <!-- Include a link to your personal account where you can manage finances -->
        <!-- Provide options for users to send, receive, and obtain money -->
        <!-- Include a form to link personal accounts -->
    </section>

    <!-- Footer section -->
    <footer>
        <!-- Footer content and links -->
    </footer>
</body>
</html>

@Ball2310

Copy link
Copy Markdown

.gitignore

[](url)

@HuluWZ

HuluWZ commented Dec 21, 2024

Copy link
Copy Markdown

what about folders we want to ignore?

add like foldername/ like public/

@HuluWZ

HuluWZ commented Dec 21, 2024

Copy link
Copy Markdown

emp

awesome case incensetiveness

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