• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Git Export

November 7, 2012 by Ulysses

Subversion has an export command when you want a copy of the repository without the .svn directories and files. Git Export is similar to Subversion’s Export command. To export a project in Git, you will need to go to the root of your Git project and issue the following commands.

cd git/project

cd git/project

Create a gzip file or a zip file.

git archive master | gzip > project.tgz

git archive master | gzip > project.tgz

or

git archive master | zip > project.zip

git archive master | zip > project.zip

Filed Under: Git Tagged With: export

Subscribe via email.

  • Home
  • About
  • Archives

Copyright © 2012–2022