Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #488 from mvladev/add-strict-gitignore
Browse files Browse the repository at this point in the history
Add strict .gitignore
  • Loading branch information
neo-liang-sap authored Dec 8, 2020
2 parents 2523216 + 5f5301d commit 9d3161a
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
/args
/bin
/gardenctl
/.kube-secrets
/tmp/*
/dev
# ignore everything
/*

*.coverprofile
*.html
.vscode
.idea
*._Store
.DS_Store

main.tf
terraform.tfstate
terraform.tfvars
variables.tf
gardenctl_completion.sh
key
bin/*
TODO*

clusters
config
kubeconfig
# except those directories and files:
!/.ci
!/.github
!/.gitignore
!/cmd/gardenctl/main.go
!/hack/tools.go
!/logo
!/pkg
!/vendor
!/CODEOWNERS

This comment has been minimized.

Copy link
@msohn

msohn Dec 8, 2020

Contributor

There is no need to explicitly exclude files from being ignored which are already tracked in the git history since git does not ignore modifications of tracked files even if they would be mentioned in .gitignore to be ignored.

https://git-scm.com/docs/gitignore

!/CONTRIBUTING.md
!/Dockerfile
!/go.mod
!/go.sum
!/LATEST
!/LICENSE.md
!/Makefile
!/NOTICE.md
!/README.md
!/VERSION

0 comments on commit 9d3161a

Please sign in to comment.