Thursday, January 12, 2012

export a repo git's way

Just so I don't forget, to export a branch or tag or any commit, just check it out, "git checkout branch", then use the command:
git checkout-index --prefix=/home/your/export/folder/ -a
Voila!
Note this is an export in the subverions sense, the .git and .gitconfig folders are ignored and the export is not a git repo.

No comments:

Post a Comment

Fork me on GitHub