Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git add exclude

git add --all -- :!path/to/file1 :!path/to/file2 :!path/to/folder1/*
git add -- . :!path/to/file1 :!path/to/file2 :!path/to/folder1/*

For Mac and Linux, surround each file/folder path with quotes

git add --all -- ':!path/to/file1' ':!path/to/file2' ':!path/to/folder1/*'

#Source https://stackoverflow.com/a/51914162/11266661 
 
PREVIOUS NEXT
Tagged: #git #add #exclude
ADD COMMENT
Topic
Name
5+7 =