2
I need to ignore any modification in certain files, but when modifying anything (in those files), it recognizes the change and stays to commit, follows my . gitignore
#Arquivos Diversos
*.log
*.yml
#rubocop-result.json
#coverage/
public/assets/
tmp/pids/
tmp/cache/
#!base_upload/contractual_instrument/.gitignore
base_upload/contractual_instrument/*
I hope I have been specific, if necessary I am available. Thanks in advance.
EDIT: the file . gitignore this at the root of the project..
/home/thiago/Documentos/mt/app#
. Dockerfile public
.. files Rakefile
app Gemfile README.md
base_upload Gemfile.lock README.rdoc
bitbucket-pipelines.yml .git script
config **.gitignore** sonar-project.properties
config.ru lib spec
db log start.sh
doc newrelic.yml tmp
docker-compose.yml photos vendor
Rakefile vendor
Some *.yml startup files cannot be deleted, but need to be modified according to the local dev database... So it can’t be deleted or changed in the commit.. sorry if I wasn’t very specific, I just started using the platform.Thank you.
You want to keep the file in Git, but you don’t want to see the changes? Why?
– Woss
I updated the question
– Thiago Vaz
In this case the easiest is to work with two different files. You keep versioned a file
foo.yml.example
, for example, and does not versionate thefoo.yml
. Locally it will be enough for the developer to copy thefoo.yml.example
forfoo.yml
and make any changes you wish.– Woss