Created
February 7, 2013 18:12
-
-
Save apeiros/4732913 to your computer and use it in GitHub Desktop.
Copy a directory from the repository in a specific revision outside the repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref=`git symbolic-ref --short HEAD` && \ | |
git checkout SOME_REVISION && \ | |
cp -r some/dir /to/dir/outside/of/repo && \ | |
git checkout $ref |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment