I am trying to export my existing git
repo with following command. But I end up with errors. any one help me to fix this?
my command :
PS F:\Nissan-Gulp> git archive --format zip --output F:\convert master
fatal: could not create archive file 'F:\convert': Is a directory
PS F:\Nissan-Gulp>
my existing git
project at Nissan-Gulp
and I wish to send to 'F:\convert':
folder. but not works.
This error message is also displayed when a file called
FILENAME
already exists, but is owned by a user whose files you cannot overwrite. (At least on 'nix-y systems.)E.g:
I ran into this problem attempting to make an archive as the root user, forgetting that I was root and that the root user didn't have a proper Git config, then attempting to make an archive as a regular Joe:
Note that
git archive
makes an empty file before this "unsafe repository" check is made.And predictably,
schmuck
cannot overwriteroot
's file:Simply delete the file as root, then proceed with the archive.