How to load arbitrary config file via git?

user291415

I'm trying to load a config file in git, but the file is not in one of the default storage locations. I tried doing git config --file .gitconfig (when I was in the correct directory that contains the .gitconfig file) but git responded by giving me a standard help message. i.e.:

usage: git config [options]

Config file location
    --global              use global config file
    --system              use system config file
    --local               use repository config file
    -f, --file <file>     use given config file

etc.
kenorb

Probably you want to do:

$ git config --local include.path "$PWD/.gitconfig"

This will include the local .gitconfig file.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to load file via ajax?

From Dev

How to load arbitrary XRC

From Dev

How to load external config file for pagination in Codeigniter

From Dev

how to load config file to an angular Object

From Dev

How to load external config file for pagination in Codeigniter

From Dev

How to set a Git config option when its config file is "$XDG_CONFIG_HOME/git/config"?

From Dev

How can I edit the .git / config file from the git terminal?

From Dev

git: how can i config git to ignore file permissions changes

From Dev

How to load Java based SecurityConfig in XML based Spring config file?

From Dev

Mule ESB - How to load a config xml (custom) file in Mule flow

From Dev

suse12: how to set default route via config file

From Dev

How to properly logrotate logs of service managed by systemd via `file:` config

From Dev

How safe is it to cat an arbitrary file?

From Dev

how do I edit a ~/.git/config file using a text editor?

From Dev

how do I edit a ~/.git/config file using a text editor?

From Dev

Authentication only via config file?

From Dev

How do I move federationConfiguration out of web.config and to some custom config file and load it dynamically by code

From Dev

How to use oslo_config to load config file only without register_opts?

From Dev

How to use oslo_config to load config file only without register_opts?

From Java

standardized method for writing an arbitrary typesafe Config to a hocon file?

From Dev

How to load YAML file via yaml-cpp?

From Dev

How to load YAML file via yaml-cpp?

From Dev

Git config "bad config file line" in a submodule

From Dev

Load a library file on to a config/file.php

From Dev

.ssh/config file for windows (git)

From Dev

Git config file local variables

From Dev

git ssh config file error

From Dev

Modify git config file globally

From Dev

load jQuery into a file via JavaScript?

Related Related

  1. 1

    How to load file via ajax?

  2. 2

    How to load arbitrary XRC

  3. 3

    How to load external config file for pagination in Codeigniter

  4. 4

    how to load config file to an angular Object

  5. 5

    How to load external config file for pagination in Codeigniter

  6. 6

    How to set a Git config option when its config file is "$XDG_CONFIG_HOME/git/config"?

  7. 7

    How can I edit the .git / config file from the git terminal?

  8. 8

    git: how can i config git to ignore file permissions changes

  9. 9

    How to load Java based SecurityConfig in XML based Spring config file?

  10. 10

    Mule ESB - How to load a config xml (custom) file in Mule flow

  11. 11

    suse12: how to set default route via config file

  12. 12

    How to properly logrotate logs of service managed by systemd via `file:` config

  13. 13

    How safe is it to cat an arbitrary file?

  14. 14

    how do I edit a ~/.git/config file using a text editor?

  15. 15

    how do I edit a ~/.git/config file using a text editor?

  16. 16

    Authentication only via config file?

  17. 17

    How do I move federationConfiguration out of web.config and to some custom config file and load it dynamically by code

  18. 18

    How to use oslo_config to load config file only without register_opts?

  19. 19

    How to use oslo_config to load config file only without register_opts?

  20. 20

    standardized method for writing an arbitrary typesafe Config to a hocon file?

  21. 21

    How to load YAML file via yaml-cpp?

  22. 22

    How to load YAML file via yaml-cpp?

  23. 23

    Git config "bad config file line" in a submodule

  24. 24

    Load a library file on to a config/file.php

  25. 25

    .ssh/config file for windows (git)

  26. 26

    Git config file local variables

  27. 27

    git ssh config file error

  28. 28

    Modify git config file globally

  29. 29

    load jQuery into a file via JavaScript?

HotTag

Archive