title: Is there a way to push git lfs to bare repository
body: <p><strong>Describe the issue</strong>
  cannot push to the bare repository</p>
  <p>I'm new to git, and I don't know if my operation is right.</p>
  <ol>
  <li>create a bare repo in computer A, and install lfs, and then share the folder to the local network</li>
  <li>clone the bare repo to computer B and install lfs, track the files using <code>git lfs track &quot;*.psd&quot;</code></li>
  <li><code>git add .</code> and <code>git commit -m 'lfs setup'</code></li>
  <li>make some changes to psd files</li>
  <li><code>git add .</code> and <code>git commit -m 'some changes'</code></li>
  <li><code>git push origin master</code></li>
  </ol>
  <p>And then... ...</p>
  <pre><code>$ git push
  Uploading LFS objects: 100% (4/4), 46 MB | 0 B/s, done.
  EOF
  error: failed to push some refs to '&lt;bare repo path&gt;'
  </code></pre>
  <p>I don’t know if there is such a way that can fix the problem？</p>
  <p><strong>Output of <code>git lfs env</code></strong></p>
  <p>git lfs env in bare repo:</p>
  <pre><code>git-lfs/2.13.3 (GitHub; windows amd64; go 1.16.2; git a5e65851)
  git version 2.31.1.windows.1
  
  LocalWorkingDir=
  LocalGitDir=&lt;bare repo path&gt;
  LocalGitStorageDir=&lt;bare repo path&gt;
  LocalMediaDir=&lt;bare repo path&gt;\lfs\objects
  LocalReferenceDirs=
  TempDir=&lt;bare repo path&gt;\lfs\tmp
  ConcurrentTransfers=8
  TusTransfers=false
  BasicTransfersOnly=false
  SkipDownloadErrors=false
  FetchRecentAlways=false
  FetchRecentRefsDays=7
  FetchRecentCommitsDays=0
  FetchRecentRefsIncludeRemotes=true
  PruneOffsetDays=3
  PruneVerifyRemoteAlways=false
  PruneRemoteName=origin
  LfsStorageDir=&lt;bare repo path&gt;\lfs
  AccessDownload=none
  AccessUpload=none
  DownloadTransfers=basic,lfs-standalone-file
  UploadTransfers=basic,lfs-standalone-file
  GIT_EXEC_PATH=C:/Program Files/Git/mingw64/libexec/git-core
  git config filter.lfs.process = &quot;git-lfs filter-process&quot;
  git config filter.lfs.smudge = &quot;git-lfs smudge -- %f&quot;
  git config filter.lfs.clean = &quot;git-lfs clean -- %f&quot;
  
  </code></pre>
  <p>git lfs env in the working repo (non bare)：</p>
  <pre><code>git-lfs/2.13.3 (GitHub; windows amd64; go 1.16.2; git a5e65851)
  git version 2.31.1.windows.1
  
  Endpoint=file:///&lt;bare repo path&gt; (auth=none)
  LocalWorkingDir=
  LocalGitDir=D:\lfs-repo\.git
  LocalGitStorageDir=D:\lfs-repo\.git
  LocalMediaDir=D:\lfs-repo\.git\lfs\objects
  LocalReferenceDirs=
  TempDir=D:\lfs-repo\.git\lfs\tmp
  ConcurrentTransfers=8
  TusTransfers=false
  BasicTransfersOnly=false
  SkipDownloadErrors=false
  FetchRecentAlways=false
  FetchRecentRefsDays=7
  FetchRecentCommitsDays=0
  FetchRecentRefsIncludeRemotes=true
  PruneOffsetDays=3
  PruneVerifyRemoteAlways=false
  PruneRemoteName=origin
  LfsStorageDir=D:\lfs-repo\.git\lfs
  AccessDownload=none
  AccessUpload=none
  DownloadTransfers=basic,lfs-standalone-file
  UploadTransfers=basic,lfs-standalone-file
  GIT_EXEC_PATH=C:/Program Files/Git/mingw64/libexec/git-core
  git config filter.lfs.process = &quot;git-lfs filter-process&quot;
  git config filter.lfs.smudge = &quot;git-lfs smudge -- %f&quot;
  git config filter.lfs.clean = &quot;git-lfs clean -- %f&quot;
  
  </code></pre>