Answers for "gitignore ignore specific file in same directory"

6

git ignore all files within a directory

# Create .gitignore inside the target folder and add the content below

# Ignore everything in this directory
*
# Except this file
!.gitignore
Posted by: Guest on May-06-2021
1

git ignore folder except one file

pippo/*
!pippo/pluto
pippo/pluto/*
!pippo/pluto/paperino.xml
Posted by: Guest on June-07-2021

Code answers related to "gitignore ignore specific file in same directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language