Git Product home page Git Product logo

mirror_mygithub's Introduction

同步 github 上的项目

包括:

  • 自己的项目(含组织)
  • 标心的项目

解决: 收藏和备份自己的代码库 及时 clone star 的项目

有时候某些喜欢的项目可能顺手就 clone 或者 star 了. 但是可能因为作者删除或者违反了 github 规则被移除, 到时候才想起来没有 clone 到本地而后悔...

配置文件

{
  "user": "your_github_username",
  "token": "your_github_token",
  "repo_root_dir": "git_repo_dir"
}
user          :  github 用户名
token         :  https://github.com/settings/tokens 到这里创建一个 access token
repo_root_dir :  要保存仓库的根目录

依赖

  • 需要安装 git, 并且将服务器的 ssh 公钥添加到 github

使用场景

我的使用场景是放在家里的服务器上, crontab 跑一个定时任务, 每天凌晨定时跑一下将代码 clone/pull 到本地磁盘

如果你 star 的项目很多的话... 可能会吃掉很大一块磁盘, 我的情况是用了 34G (这已经超乎我的想象了)

mirror_mygithub's People

Contributors

yinheli avatar

Watchers

jiejie-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.