git clone - Can we reclone a git repository from the existing local repository -


since git distributed vcs, should have complete history of changes done repository.

so can extract version of repo cloned first?

actually have done lot of changes in existing local repo. , not want revert original state losing data. want extract original repository(which cloned initially) other location using existing git objects(blob/tree).

note : don't have access git server now.

try this:

git clone source_path new_path # clones have committed cd new_path                    # go new clone, don't modify pre-existing 1 git reset --hard rev           # rev revision "rewind" (from git log) 

so need figure out explicitly revision go (git doesn't know revision cloned, can figure out). first step clone local disk local disk in different directory can keep existing work untouched.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -