Search
 
SCRIPT & CODE EXAMPLE
 

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 
Comment

PREVIOUS NEXT
Code Example
Shell :: find syntax in linux 
Shell :: apt upgrade vs full-upgrade 
Shell :: install anaconda ubuntu 16.04 
Shell :: how to install perl 
Shell :: vite new project 
Shell :: awk and or 
Shell :: switching branch in git 
Shell :: gitignore still tracking files 
Shell :: set new git remote url 
Shell :: pyinstaller version file 
Shell :: delete .lastupdated maven 
Shell :: 2&1 linux pipe stderr, stdin, stdout 
Shell :: linux cp overwrite directory 
Shell :: join rows in one string linux 
Shell :: kill proccess 
Shell :: read (subshell_pty...): No such file or directory (2) 
Shell :: wix installer log missing file copy for one dll 
Shell :: Swappiness setting recommendation swap sysctl.conf performance improvement Hadoop system 
Shell :: installer robot 3T ubuntu 
Shell :: delete fg linux 
Shell :: ros2 galactic build from source 
Shell :: openfoam for ubuntu 
Shell :: shell script local variable 
Shell :: list all the created users ids only 
Shell :: Continuous bash script to do tasks 
Shell :: docker unpause 
Shell :: how to check apt upgradable size 
Shell :: fslmaths fill holes 
Shell :: CMake 3.16.0 or higher is required. You are running version 3.10.2 
Shell :: pip install dali 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =