I\'ve been wondering whether there is a good \"git export\" solution that creates a copy of a tree without the .git
repository directory. There are at least thr
I have hit this page frequently when looking for a way to export a git repository. My answer to this question considers three properties that svn export has by design compared to git, since svn follows a centralized repository approach:
Exporting a certain branch using svn is accomplished by specifying the appropriate path
git clone --depth 1 --branch master git://git.somewhere destination_path
rm -rf destination_path/.git
When building a certain release it is useful to clone a stable branch as for example --branch stable
or --branch release/0.9
.