title: How to git pull with no default identity when using a deploy token?
body: <p>I have a Gitlab repo which has a main branch that is very large. I only want to use one folder in the repo, so I created a branch and removed all content other than the folder I wanted to use. Then, I cloned the branch with a deploy token (with full permissions) and the branch flag to specify the branch:</p>
  <pre><code>git clone --branch my_branch https://oauth2:[MY_TOKEN]@gitlab.com/my-repo.git ./save_location
  </code></pre>
  <p>This is fine, I have no problem at all cloning the repo. And if I want to get any updates to the folder that were pushed to the master branch, I can pull the master into my branch, with the <code>-X theirs</code> flag set. I checked the git documentation, and when cloning with the branch flag set, the repo still tracks all other branches so this pull still works as expected. So here is the command:</p>
  <pre><code>git pull origin master -s recursive -X theirs
  </code></pre>
  <p>This seems to be straightforward enough, but attempting the pull will present this error:</p>
  <pre><code> * branch            master     -&gt; FETCH_HEAD
  Committer identity unknown
  
  *** Please tell me who you are.
  
  Run
  
    git config --global user.email &quot;you@example.com&quot;
    git config --global user.name &quot;Your Name&quot;
  
  to set your account's default identity.
  </code></pre>
  <p>If I am using a deploy token to access the repo, and the token has full permissions, then why am I still being asked to provide an identity? How can I resolve this issue without configuring an identity? I want to assure that this is a completely faceless system with no dependencies on an account.</p>