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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -