|
Using the git config --global command to set things up, where is the file?
eg :
git config --global core.editor "blah"
Its not at these places :-
C:\Program Files\Git\etc\gitconfig
C:\myapp.git\config
I have not env set?
git version 1.6.5.1.1367.gcd48...
Started by IanVaughan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That means the file is in C:\Users\MyLogin\.gitconfig.
Users\MyLogin
(on Windows7)
Since:
--global
For writing options: write to global ~/.gitconfig file rather than the repository .git/config .
|
|
I'm in the process of evaluating the benefits of Zend_Config_Ini versus using a simple constant file.
e.g. -
define('DB_HOST',localhost); //versus $config = new Zend_Config_Ini('/path/to/config.ini', 'staging'); echo $config->database->params->...
Started by AndreLiem on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The main advantage of using the Registry with a config is to avoid polluting the global in your application going to know how to read your global config?
Zend_Config has already "solvedA nice advantage....
When needed).
|
|
I have a program that I use on several sites. It uses require('config.php'); to set any site dependant variables like mysql connect info, paths, etc.
Let's say that I use one of these site-dependant variables in a function, like $backup_path .
This variable...
Started by Andrew Swift on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Even then it's good to check that the global ....
Function makebackup application only, and for $backup_path only, then maybe consider the global alternative.
I'm think you must use Singleton of Factory class config for this purposes.
|
Ask your Facebook Friends
|
Consider the following class:
class Something : ISomething { public void DoesSomething(int x) { if (x == 0) { x = 1; } } }
I want to of course remove the magic number - my unit tests are passing etc... but I want to refactor the horrible magic number ...
Started by Finglas on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Should avoid putting it in your config file, otherwise you will end up programming in xml ;)
Using MyOldMagicNumber { get; } }
Then have two implementations of this, one for production that reads from the config 87; /*Or whatever you want....
|
|
What is the differnce b/w webconfig and machine config
Started by Domnic on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Next is machine.config , which is the....
There is a hierarchy of config files:
applicationHost.config is the top-level IIS config file.
Machine.config is a global configuration file containing default settings at machine level which.
|
|
If you set something like this on Windows:
git config --global core.autocrlf false
Where is this global setting getting written to?
Started by S. Michaels on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
--file will....
Called .gitconfig, unless you specify another name with the ' --file ' option
git config --global --file myFile key value
Note: the environment variable GIT_CONFIG can also be used to specify another name for this file.
|
|
Typically we keep our config values in web.config/app.config and for the environment global config varialbes (and not application specific) in server machine.config file.
When deploying an object to the GAC where is the best location to keep these config...
Started by David on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The solution I've used for creating....
For an assembly in the GAC, it is possible (but not recommended) to physically copy a config file to the assembly dll folder.
config files (as opposed to executing assembly config files) in the past.
|
|
I have editor settings that I want to spread in all repositories. If the user defines its own settings, it should erase the repository choices of course.
I want to do that because I have a class and every student clone the repo. Usually they forget to...
Started by e-satis on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Global settings can be set via: git config --global
Maybe you should first let the students clone.
|
|
When I create a new git repository, some configurations settings are automatically added to .git/config . Where can I change these default settings?
Started by ciscoheat on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For eg:
git config --global user.name "First Last" git config --....
All git global configs can be altered by the --global supplied at the command line.
Core_config() funcftion which set default values.
|
|
I'm starting to use SVN repositories for all of our websites and wanted to know what the best practise was regarding website config files.
Should they be stored in the repository? The problem is the configuration of the websites need to be different for...
Started by Camsoft on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're talking ASP.NET sites here....
For instance, you might write the config file such that it checks some global systemGenerally, it's best to put config files into version control if they store significant information.
Tricks.
|