Skip to content

Commit

Permalink
Clarified the role of .gitkeep files and their naming
Browse files Browse the repository at this point in the history
  • Loading branch information
erinmgraham committed Nov 17, 2024
1 parent 514530b commit 8cdbb9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions episodes/04-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,7 @@ Two important facts you should know about directories in Git.

Note, our newly created empty directory `cakes` does not appear in
the list of untracked files even if we explicitly add it (*via* `git add`) to our
repository. This is the reason why you will sometimes see `.gitkeep` files
in otherwise empty directories.
repository. This is the reason why you will sometimes see `.gitkeep` files in otherwise empty directories. The sole purpose of `.gitkeep` files is to populate a directory so that Git adds it to the repository. The name `.gitkeep` is just a convention, and in fact, you can name these files anything you like.

2. If you create a directory in your Git repository and populate it with files,
you can add all files in the directory at once by:
Expand Down

0 comments on commit 8cdbb9c

Please sign in to comment.