Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git ignore file seems overly broad #34

Open
mk-pmb opened this issue Jul 29, 2023 · 0 comments
Open

Git ignore file seems overly broad #34

mk-pmb opened this issue Jul 29, 2023 · 0 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Jul 29, 2023

Hi! We should make all the file patterns in .gitignore start with a slash, in order to make it predictable where they match. Example:

$ mkdir yolo
$ mkdir yolo/cover
$ touch yolo/cover/ohno
$ git status yolo/
On branch implement-yolo
nothing to commit, working tree clean

… which may cause accidential data loss in the ohno file. (Because the cover/ ignore rule matches in all subdirectories.)

The .history line should have a comment that describes it saves the prompt history, without replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant