Read-only archive. These discussions are from Tracston's earlier
technical forum and are kept online because the answers are still useful.
New replies are closed. Need help with something like this?
Talk to us.
Question
30 Mar 2021
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
Need this fixed properly?
We do this for a living.
Kubernetes, DevOps and platform engineering, delivered in days — not another weekend lost to a stack trace.
Start a project →