Enable archive option on git repository

'How Do I...' and 'How to...' Guide to Stash

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community


When trying to export one file from repository by using the command below, there is an error.:

git archive --remote=http://user@stash/scm/project/repo.git HEAD:file.txt
fatal: Operation not supported by protocol.


The "archive" option is disabled on the Git repository that you're trying to fetch the file. 



In order to enable it for a repository in Stash, you should:

  • Issue the commands:

$ cd <directory_found_through_sys_info>
$ git config daemon.uploadarch true
$ cat config
        uploadarch = true



Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.