“Git ignorar, exceto” Respostas de código

Git ignorar, exceto

# 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 tudo, exceto

# 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 tudo, exceto

# 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

Respostas semelhantes a “Git ignorar, exceto”

Perguntas semelhantes a “Git ignorar, exceto”

Mais respostas relacionadas para “Git ignorar, exceto” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código