How Can I Solve The Github Download Slowly UPDATED

How Can I Solve The Github Download Slowly

   equally anybody knows ,GitHub It'due south a huge open source treasure house , And a gathering identify for programmers and programmers , Including many excellent open source projects that I recommended earlier are all located in GitHub On . But every time we see good open source projects , Gear up to go Side by side (bai) load (piao) when , Will observegit clone  It's incredibly slow ! It's just too hard . The small projection is fine , Even downloading , It'll accept a few minutes, besides ; In one case the project is huge , Or the number of project documents ,git clone  Probably neglect ! Of course, there are some common modifications on the Net hosts( Accelerate domestic Github Admission speed )、 The actual use effect of agents is not necessarily expert , And it's not stable . If you don't go over the wall , So if y'all want to apply it smoothly github It's very difficult . So I've summed up three approaches , For anybody to cull

Ane 、github Speed up the website

   This method is the nearly user-friendly , In rare cases, it will exist tiresome , Merely it must be faster than downloading . To be honest, I'yard not willing to share , Because it's a small website , More people know , It'south going to load .

Website 1 :https://toolwa.com/github/

Usage method

  1. Open what you want to download  GitHub  Warehouse page
  2. Click the green button on the right "Lawmaking" > "Download ZIP"
  3. Afterward the browser pops upward the download box, re-create the link address in the download box and paste information technology into the above input box
  4. Click to speed up the download

Two 、 Code cloud

   This method is through the domestic code hosting platform —— Lawmaking cloud Equally an intermediary , To complete github Download speed of the project on .

  1. Commencement, make certain in that location is an business relationship on the lawmaking cloud , Information technology can be used normally. , If not, y'all can register yourself ;
  2. Click the plus sign in the upper correct corner of the new warehouse +  , choice "  from GitHub/GitLab Import warehouse  " menu ;
  3. Then make full in the box at github Come up on, you want toclone Warehouse address   And import ;( It'due south very fast to give this step to code cloud , in an instant , Code cloud cloned a copy and GitHub As like as 2 peas !)
  4. Next nosotros utilize the project address on the code cloud , Put the project clone To local , By this fourth dimension clone It'due south fast , A few MB/southward At that place'southward no problem with the speed of , Shortly the project was downloaded ;

By this time, our goal has been achieved , But don't forget , At this time, the projection cloned to the local is associated with Code deject Gitee The address of , Already with the original GitHub project Completely discrete from , Information technology'due south some other re-create . You lot passed git performance , The submitted warehouse is not github, Information technology is Lawmaking deject , If necessary ( For example, we are going to give GitHub One of the items mentioned in PR), We also need to re relate our local projects to the original GitHub Projection up , therefore , We need to change the remote address once more . Doing this :

  1. First find the hidden folder located in the local warehouse Directory .git;
  2. Open with text editor .git In binder config The configuration file ;
  3. In the configuration file [remote "origin"].url Field is reassociated to the original GitHub Upper GitHub Projection address

At present it's washed , Local projects are equivalent to clone since GitHub, Follow upward with the code , carry PR To GitHub There's no problem .

iii、 ... and 、 Over the wall

   The last manner , That's over the wall , Turn on global mode , Whether it'due south browsing github Website , Download , So the speed is all about leverage , But this way , Because of the national weather , I don't recommend .

git Simultaneously submit to code cloud and github

considering github git push button It also has a lot to do with the Net when it comes to Internet , Most people will choose the domestic code cloud Make a backup , So I'k going to talk most pushing open up source projects to github And code deject .

Premise : Your code is already in github Warehouse and code cloud warehouse

  • github:https://github.com/LXP-Never/blog_data
  • Code cloud :https://gitee.com/LXP-Never/blog_data

Modify the configuration manually git file

ane、 clone Github The project code is local

git clone https://github.com/LXP-Never/blog_data.git

2、 Enter the projection directory to modify git Configuration file for config, Afterward the configuration config The contents of the document

            $ cat config [core]         repositoryformatversion            =              0         filemode            =              false         bare            =              fake         logallrefupdates            =              true         symlinks            =              simulated         ignorecase            =              true         hideDotFiles            =              dotGitOnly [remote                        "            origin            "            ]         url            = https://github.com/LXP-Never/blog_data.git         fetch            = +refs/heads/*:refs/remotes/origin/*              [remote "second"]         url = https://gitee.com/LXP-Never/blog_data.git         fetch = +refs/heads/*:refs/remotes/second/*          

The above carmine configuration content is the newly added content

iii、 View all branches

You tin encounter one more 2nd long-range master Branch

4、 Start pushing code

Hither'due south a alter README.medico file , Add content :" Code deject submit lawmaking ", Then bank check the status , Submit directly to the code cloud owner master Branch

  • git push origin principal  It volition be pushed to Github
  • git button 2d master It will be pushed to the code cloud
  • Be careful :2d origin Information technology'southward all names , You can pick it upwardly yourself .

Be careful : The above steps must be added to the local warehouse at the same time , The above two are here

Go back to the code cloud once more to see if the submission is successful ,

The second fashion of synchronization

It'southward code cloud , Strength synchronization

Reference resources

【 Recommended reading 】GitHub Download acceleration ( This article offers many ways , Although I didn't go to see , You can observe out what you are interested in )

【 article 】Github Use the code deject to speed upwards the download

【 article 】git How to simultaneously submit to lawmaking cloud and GitHub On

版权声明
本文为[Ling bizhan]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/01/20210108225924986s.html

DOWNLOAD HERE

Posted by: susiealaim1971.blogspot.com

Post a Comment

Previous Post Next Post

Iklan Banner setelah judul