Giter VIP home page Giter VIP logo

gitignore-in-gitignore's Introduction

gitignore-in-gitignore

What happens when you put .gitignore in .gitignore

So I added the .gitignore through GitHub, and it got added. Well it'll get added regardless of if it's in the .gitignore or not, so I am going to do this in Github Desktop and see what it does.

Update after GitHub Desktop

Soooooo... the .gitignore doesn't appear in GitHub Desktop, so that's one big...

OOF!

So it cloned the repo along with the gitignore, however the way that GitHub Desktop (Someone correct me if I am wrong) works is that if there is a .gitignore file, read the contents of it, then remove all those files from the list of files of that repository. So GitHub Desktop found the file, just that it's doing it's job.

Ignoring it.

So that means I cannot commit the thing right? 'Cause if I remove the .gitignore, it'll defeat the whole purpose of this repo, and if I leave it, then we cannot commit it cause git is gonna "ignore" it.

Well, thanks for reading

So yeah this expriment wasn't a total failure, it showed you what happens if you add .gitignore to your .gitignore. Thanks for reading.

gitignore-in-gitignore's People

Contributors

techstudent10 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.