Skip to main content

Posts tagged with #gitignore

Recent Posts (Page 1)

Photo by Roman Synkevych via Unsplash

How to delete all files ignored by Git

The .gitignore file in a Git repository serves as a configuration file that specifies files and directories that Git should — as the name implies — ignore. When Git encounters a file or directory listed in .gitignore, it automatically excludes them from being tracked, preventing them from showing up in commands like git status and git add.

Photo by Mikhail Vasilyev via Unsplash

.gitignore for GoHugo

This is a slight update on my previous post about the perfect .gitignore file for GoHugo. TLDR: The current optimum .gitignore content for a GoHugo project is the following (in addition to your own ignored files and folders): ini COPY 1/public/ 2/resources/_gen/ 3/assets/jsconfig.

Back to top
Back Forward