Git archive

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

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.