Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

clone repo with large size using git bash

One potential technique is just to clone a single branch. You can then pull in more later. Do git clone [url_of_remote] --branch [branch_name] --single-branch.

Large repositories seem to be a major weakness with git. You can read about that at http://www.sitepoint.com/managing-huge-repositories-with-git/. This article mentions a git extension called git-annex that can help with large files. Check it out at https://git-annex.branchable.com/. It helps by allowing git to manage files without checking the files into git. Disclaimer, I've never tried it myself.

Some of the solutions at How do I clone a large Git repository on an unreliable connection? also may help.

EDIT: Since you just want the files you may be able to try git archive. You'd use syntax something like

git archive --remote=ssh://git@bitbucket.org/username/reponame.git --format=tar --output="file.tar" master
I tried to test on a repo at my AWS Codecommit account but it doesn't seem to allow it. Someone on BitBucket may be able to test. Note that on Windows you'd want to use zip rather than tar, and this all has to be done over an ssh connection not https.

Read more about git archive at http://git-scm.com/docs/git-archive
Comment

PREVIOUS NEXT
Code Example
Shell :: command to uninstall windows store 
Shell :: make a new branch git 
Shell :: linux kill all process of a user 
Shell :: Automatically run program on Linux startup via systemd 
Shell :: download mongodb ubuntu 20.04 
Shell :: flushbar flutter 
Shell :: what is gist in github 
Shell :: how to install zsh using brew 
Shell :: How to install Qt console 
Shell :: linux cp 
Shell :: remove dock from ubuntu 
Shell :: flutter signingthe app 
Shell :: gzip folder with tar and exclude directories 
Shell :: kali linux ping ip 
Shell :: how to check wsl version 
Shell :: clone all github repos 
Shell :: linux mount sd card 
Shell :: android/gradlew EACCES error 
Shell :: WSL with VPN 
Shell :: vmware shared folder not showing 
Shell :: uname command 
Shell :: change default location screen mac 
Shell :: what is a shebang line 
Shell :: should you use docker on linux 
Shell :: mongodb bitnami helm 
Shell :: docker run -d 
Shell :: conda install throws ssl error 
Shell :: git checkout filename 
Shell :: openssl error with ruby 2.3.4 in ubuntu 
Shell :: kazam or simplescreenrecord Recording the Black Screen in linux. 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =