# Git module: How to provide a config setting when cloning a repository

**URL:** <https://forum.ansible.com/t/git-module-how-to-provide-a-config-setting-when-cloning-a-repository/22924>\
**Category:** Ansible Project\
**Created:** [October 31, 2016, 7:28am UTC](https://forum.ansible.com/t/git-module-how-to-provide-a-config-setting-when-cloning-a-repository/22924 "2016-10-31T07:28:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jurgen\_Haas2](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Post date:** [October 31, 2016, 7:28am UTC](https://forum.ansible.com/t/git-module-how-to-provide-a-config-setting-when-cloning-a-repository/22924/1 "2016-10-31T07:28:12Z")

</div>

I wonder if it’s possible to provide some config values when initially cloning a repository. The command line would look like this:

`git clone -b 2.17.0 --recurse-submodules --config filter.lfs.smudge=true https://github.com/piwik/piwik.git`

Using the git\_config module doesn’t seem to be an option because I only need that setting for one specific working copy and the destination directory does not yet exist at this time.
