Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. > git archive --format=zip --remote=ssh://path/to/my/repo -o archived_file.zip
  2. HEAD:path/to/directory filename
  3.  
  4. repo.archive(open(join(rw_dir, 'archived_file.zip'), 'wb'))
  5.  
  6. repo = Repo('path to the directory which has .git folder')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement