“Gitignore excluant le dossier” Réponses codées

git ignorer la commande du dossier

$ touch .gitignore
Alert Alligator

Gitignore excluant le dossier

# Ignore all directories, and all sub-directories, and it's contents:
*/*

#Now ignore all files in the current directory 
#(This fails to ignore files without a ".", for example 
#'file.txt' works, but 
#'file' doesn't):
*.*

#Only Include these specific directories and subdirectories:
!wordpress/
!wordpress/*/
!wordpress/*/wp-content/
!wordpress/*/wp-content/themes/
!wordpress/*/wp-content/themes/*
!wordpress/*/wp-content/themes/*/*
!wordpress/*/wp-content/themes/*/*/*
!wordpress/*/wp-content/themes/*/*/*/*
!wordpress/*/wp-content/themes/*/*/*/*/*
Witty Wallaby

Comment exclure le répertoire.

# Ignore the node_modules directory
node_modules/

# Ignore Logs
logs
*.log

# Ignore the build directory
/dist

# The file containing environment variables 
.env

# Ignore IDE specific files
.idea/
.vscode/
*.sw*
Razvan Manole

Réponses similaires à “Gitignore excluant le dossier”

Questions similaires à “Gitignore excluant le dossier”

Plus de réponses similaires à “Gitignore excluant le dossier” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code