Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > git archive --format=zip --remote=ssh://path/to/my/repo -o archived_file.zip
- HEAD:path/to/directory filename
- repo.archive(open(join(rw_dir, 'archived_file.zip'), 'wb'))
- repo = Repo('path to the directory which has .git folder')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement