gitCloneArchive function

Future<void> gitCloneArchive({
  1. required String url,
  2. required String destination,
})

Download a git repository archive from url and save it to destination.

Use this function if you haven't installed git on your system.

Note: this function will not extract the archive.

Example:

gitCloneArchive(
  url: 'https://github.com/g1eny0ung/git_clone/archive/refs/heads/master.zip',
  destination: 'git_clone-master.zip',
);

Implementation

Future<void> gitCloneArchive({
  required String url,
  required String destination,
}) {
  return _downloadFile(url, destination);
}