branch - How can I download only the necessary parts of a remote project in Git? -
if working on large remote repository , want restrict download few branches working on, how configure git-clone command, assuming right command in case?
if you're working on 2 branches in 2 separate directories, can set 1 clone of other:
git clone http://remote/repo.git branch-a git clone branch-a branch-b
then, fix origin
remote in branch-b
:
cd branch-b git remote add origin http://remote/repo.git
(you may have remove previous origin
first). way, local repository information shared hard links between 2 directories, saving space compared making 2 separate clones of remote.
or, go buy 1 tb drive, they're cheap.
Comments
Post a Comment