I use this to take offsite back-ups of projects in git:
git archive --format=tar.gz --output [PROJECTNAME]_[DATE].tar.gz HEAD
Run the command inside the folder of the project.
Add new comment