169 похожих чатов

In my project, there's a file which gets modified once

and forever (like changing http://myProdAddress to 127.0.0.1 blah blah), and I don't want to see this file in the change list before each commit I do.

Using IntelliJ Idea, I can put it in a change list named "unimportant local settings".
But, in Eclipse I can neither hide it, nor group it. (I use "git staging" tab)

Is there any other git plugin providing a solution for this?

9 ответов

55 просмотров

gitignore?

Martin Rys
gitignore?

The gitignore is not working if the file was already commited. My solution for an similar problem is to use an uncommited file for local settings.

Sebastian
The gitignore is not working if the file was alrea...

In that case the solution is to fix your program and add a config file.

required-optional Автор вопроса
Martin Rys
gitignore?

Also I don't want to untrack or ignore the changes. But yes this is the only solution, if I don't find any.

required-optional Автор вопроса
Sebastian
The gitignore is not working if the file was alrea...

The config files should be committed and tracked. Because new properties (with default values) will be added to them, on each version. Also, because you need to know what differences your current local environment has (compared to current version). The only problem is that they should not always get shown among other changes in the list. But I found the solution: Creating a file with "_override" suffix, per each config file, containing only overridded properties. Such files can be gitignored. I'm still unsure if it is the best solution or not.

required optional
The config files should be committed and tracked. ...

I haven't found a better method that is indipendent of the editor/ide.

required optional
The config files should be committed and tracked. ...

Why not just have your defaults in the code that loads the config

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
Ребят в СИ можно реализовать ООП?
Николай
33
https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_h_common.erl#L174 https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_olp.erl#L76 15 лет назад...
Maksim Lapshin
20
Карта сайта