Git archive

March 16, 2017

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 e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.