Forum breadcrumbs – You are here:Tracston Community Forum – DevOps, Micro Services, Cloud, Infrastructure, Development, Monitoring and more…Development: GIT – Code RepositoryExclude files from your projects
You need to log in to create posts and topics.
Exclude files from your projects
moshe@moshe
#1 · 30/03/2021, 7:17 am
Quote from moshe on 30/03/2021, 7:17 amProblem
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
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
Click for thumbs down.0Click for thumbs up.0