Forum Navigation
You need to log in to create posts and topics.

Exclude files from your projects

Problem

user wants to exclude files such as compiled binaries, logs, etc.. from adding to the project

Solution

Use gitignore settings

cd project directory

touch .gitignore

git config –global core.excludesFile .gitignore

edit the file .gitignore and make sure to put relative path ( include directories ) for the files you want to exclude

Project/logs/daemon.log

Project/logs/*.log

 

 

All content available through this Web Site is provided on an “AS IS” and “AS AVAILABLE” basis, with all faults. Tracston LTD makes no warranty or representation with respect to the quality, accuracy, or availability of the Web Site or any of its content.