Hello Team,
The Bitbucket repository has over 7gb data out of which only certain folders are needed (Around 700mb).
We would like to clone only the required files from the Bitbucket repository to avoid downloading excess files and speed up the development process
Can you please help regarding the script or commands that are needed to get only required files to clone from repo.
Thanks,
Siva
You could do this by using a combination of git sparse checkout and shallow clone. Have a look at this thread on how to combine these commands, https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/28039894#28039894
The command "git pull --depth=1 origin master" takes hours to complete although the directory which has been selected for clone (through the echo command) is few kb. What might be the reason for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.