Skip to content

.gitignore without an initialized repo #347

@matthewmueller

Description

@matthewmueller

A lot of times when I'm just creating a project, I want to add a few files and directories to the .gitignore, before setting up git.

The behavior before was to just run git ignore node_modules and it would create a .gitignore file, not it's errors out with Not a git repo!. I understand why this is here, but it forces you to manually create the file and add these files before committing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions