I have a folder structure as shown below. I want to ignore all subfolders (and all their content) .git, but include all files that are directly in .git(for example, FETCH_HEAD and HEAD).
How to write this in a file .dockerignore.
.git
├── COMMIT_EDITMSG
├── FETCH_HEAD
├── HEAD
├── description
├── hooks
│ ├── applypatch-msg.sample
│ ├── commit-msg.sample
│ ├── post-update.sample
│ ├── pre-applypatch.sample
Hedge source
share