I have cloned a project that includes some .csproj files. I don\'t need/like my local csproj files being tracked by Git (or being brought up when c
An almost git command-free approach was given in this answer:
To ignore certain files for every local repo:
~/.gitignore_global, e.g. by touch ~/.gitignore_global in your terminal. git config --global core.excludesfile ~/.gitignore_global for once.~/.gitignore_global. e.g. modules/*.H, which will be assumed to be in your working directory, i.e. $WORK_DIR/modules/*.H.To ignore certain files for a single local repo:
.git/info/exclude within the repo, that is write the file/dir paths you want to ignore into .git/info/exclude. e.g. modules/*.C, which will be assumed to be in your working directory, i.e. $WORK_DIR/modules/*.C.