preface

In daily development, there are many factors that affect our development efficiency, and sometimes it can not only affect our development efficiency, but also ruin our mentality.

In order to improve work efficiency, stay happy, and free up more time for fishing, my predecessors have come up with a lot of useful tips. Here are a few of my common tips.

Quickly pull up a Github project

Github can be said to be one of the most extensive platforms for our generation of programmers to deal with, even known as “the world’s largest Tongxing communication platform”, but limited to the particularity of China, it is really a painful thing to pull a project from Github.

Where there is oppression, there is resistance. The predecessors have also concluded a set of routines that can quickly attract the Github project, which needs the help of the Domestic Gitee. The specific steps are:

Step 1: Get the Git address of the target project.

Step 2: Open Gitee and import the project from Github to Gitee by following the steps highlighted below. Only the key steps are marked on the diagram. Some options can be set by yourself.

Not long ago, Gitee didn’t have the option to import from Github, but it’s only been added in recent months.

Step 3: Get the Gitee address of the project and use git Clone address to pull the project.

Now you can enjoy the speed of light!

Improve Github access speed

I am here to introduce the method of modifying host, test the effect of the bar drop. Specific steps:

Step 1: Get the current Github Hosts from this site and copy it.

Step 2: Open the Hosts file on the host. If you have VSCode installed, you can open the hosts file directly on the terminal to make changes.

  • Mac code /etc/hosts
  • Windows code C:\Windows\System32\drivers\etc\hosts

Step 3: Paste the Github Hosts copied above into the Hosts file and save it. When saving here, administrator authorization is generally required. Normal authorization can be.

This will allow you to access Github at normal speed.

conclusion

Enjoy the health, away from the turtle speed!

Hopefully these tips will keep your love of programming alive!

PS: These small skills are the development of the world’s predecessors trip out of the pit, like them salute!

~

Thanks for reading!

~

Learn interesting knowledge, meet interesting friends, shape interesting soul!

Hello everyone, I am the author of “programming Samadhi”, I am king Yi, my public account is “programming Samadhi”, welcome to pay attention, I hope you can give me more advice!