Nocode: Missing .gitignore

Created on 7 Feb 2018  路  6Comments  路  Source: kelseyhightower/nocode

It's still possible to unintentionally introduce code into source control. This is unacceptable. A .gitignore should be provided to ensure this doesn't happen.

For example:

.gitignore

**/**

Most helpful comment

*
!.gitignore

should do the trick. Technically, it is more of a pre-commit hook of sorts, rather than code.

All 6 comments

This would then be code, no?

@elliottpolk A small sacrifice for a long-term benefit

.ts
.js
.html
.css
.scss
.py
.cpp
.jsx
.tsx

.gitignore has a conflict. Requires computer to be turned on.

*
!.gitignore

should do the trick. Technically, it is more of a pre-commit hook of sorts, rather than code.

@elliottpolk A small sacrifice for a long-term benefit

This is how it starts.

I'd advise not to add much more business logic here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

julianommartins picture julianommartins  路  3Comments

rdev picture rdev  路  3Comments

ramarivera picture ramarivera  路  3Comments

freecats picture freecats  路  3Comments

Jourday picture Jourday  路  3Comments