Answers for "add all files in folder to gitignore"

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
2

gitignore all files and folders in only one folder

*
*/
!.gitignore
Posted by: Guest on December-05-2020
1

add folders to gitignore

dir_to_ignore/
Posted by: Guest on October-27-2021

Code answers related to "add all files in folder to gitignore"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language