“Git ignorer sauf” Réponses codées

Git ignorer sauf

# Skip all files
*

# But not `aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt`
!aDir/
aDir/*
!aDir/anotherDir/
aDir/anotherDir/*
!aDir/anotherDir/someOtherDir/
aDir/anotherDir/someOtherDir/*
!aDir/anotherDir/someOtherDir/aDir/
aDir/anotherDir/someOtherDir/aDir/*
!aDir/anotherDir/someOtherDir/aDir/bDir/
aDir/anotherDir/someOtherDir/aDir/bDir/*
!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/
aDir/anotherDir/someOtherDir/aDir/bDir/cDir/*
!aDir/anotherDir/someOtherDir/aDir/bDir/cDir/a.txt
Outrageous Ostrich

gitignore ignore tout sauf

# ignore everything in current directory
/*

# !pattern now negates the "ignore everything" and keeps 'pattern'

# keep .gitignore
!.gitignore 

# keep mydirectory, along with everything inside it 
!mydirectory/
Gifted Gull

.gitignore tout sauf

# Ignore everything
*

# But not these files...
!.gitignore
!script.pl
!template.latex
# etc...

# ...even if they are in subdirectories
!*/

# if the files to be tracked are in subdirectories
!*/a/b/file1.txt
!*/a/b/c/*
slohobo

Réponses similaires à “Git ignorer sauf”

Questions similaires à “Git ignorer sauf”

Plus de réponses similaires à “Git ignorer sauf” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code