will adding .gitconfig in repository override my global .gitconfig file configurations?

I am having my project hosted in TFS-GIT server. I am having an issue with pull request merges on TFS . one option is to update git configs on TFS server itself to make “merges –no–ff” because of time crunch and other issues that cannot be done sooner . I am looking for a workaround for this issue

If i add .gitconfig file to the repository with merge .ff and pull.ff to false will that override configs applied at repository level ? will that work like that with git?

  • Reject a git commit with a message that is the same as that of the previous commit?
  • You have not concluded your merge (MERGE_HEAD exists)
  • How to separate content from structure in a git repository?
  • Password protect master repository
  • Install jQuery using Git
  • My git push is stuck on a large file. What to do?
  • Any help is greatly appreciated

  • what are possible ways of referring to a git stash?
  • Git clone with password @
  • How to omit very long lines from `git grep`?
  • how to know a total commit of a collaborator
  • How to change the author of a PR in GitHub?
  • Internal Error 500 in Openshift and Python without a traceback
  • One Solution collect form web for “will adding .gitconfig in repository override my global .gitconfig file configurations?”

    Yes, the settings in the .gitconfig checked into a particular repository will override your global .gitconfig settings.

    See this link:

    A .gitconfig file can reside in up to three locations within your
    filesystem, the location determining the scope in which the file’s
    contents are considered:

    • Global (~/.gitconfig): The most common use, establishes global
      configuration options for a particular user.
    • System (/etc/.gitconfig):
      Rarely used, establishes configuration options for the entirety of the
      local system (all users on this computer).
    • Local: At the repository level,
      establishes configuration options that only affect this repository. If
      this file were committed, the settings contained within would impact
      all users that clone this repository.

    Also from git-scm.com (edited for clarity):

    The files are read in order, with (the repository
    specific .gitconfig
    ) found taking precedence over (other .gitconfig files).

    Git Baby is a git and github fan, let's start git clone.