Skip to content

Commit 1921b9b

Browse files
committed
Clean up .gitignore to only cover project-specific artifacts
Remove the broad hidden file exclusion and its `.git*` whitelist in favor of a global `~/.gitignore`. Editor and OS artifacts such as `.DS_Store`, `.idea/`, or `.vscode/` are environment-specific and not the project's responsibility to exclude. Each developer should maintain a global ignore file for such artifacts: git config --global core.excludesFile ~/.gitignore Keep only Composer installation artifacts with a comment clarifying why `composer.lock` is excluded for library projects.
1 parent d2d7336 commit 1921b9b

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.gitignore

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# Exclude all hidden files
2-
.*
3-
4-
# Except those related to Git and GitHub
5-
!.git*
6-
!.github*
7-
8-
# Exclude files from composer install
9-
vendor/
1+
# Ignore Composer installation artifacts; composer.lock is intentionally
2+
# excluded as this is a library - applications depending on this package
3+
# manage their own lock file.
4+
/vendor/
105
composer.lock

0 commit comments

Comments
 (0)