“Git ignora excepto” Código de respuesta

Git ignora excepto

# 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 ignora todo excepto

# 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 todo excepto

# 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

Respuestas similares a “Git ignora excepto”

Preguntas similares a “Git ignora excepto”

Más respuestas relacionadas con “Git ignora excepto” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código