Code Monkey home page Code Monkey logo

re-tongbujiaocheng's Introduction

re-# 通过reposync方式进行代码同步

Why

麻烦各位取消掉fork,通过下面的方法重新创建分支,同步代码

此方式亲测可行,请放心食用

How

创建新仓库

点击创建自己的仓库

填入Repository name后点击最下方的Create repository即可完成创建

自己创建工作流

在创建完成页面点击Actions再点击set up a workflow yourself

set_up_workflow

复制https://cdn.jsdelivr.net/gh/wuzhi03/MyActions@main/.github/workflows/repo-sync.yml 里面的代码

复制完毕后直接点击右上角的Start commit后直接Commit new file即可

create_new_sync_yaml

申请PAT

点击 GitHub 用户设置页面 最下方的Developer setting ,然后选择 Personal access tokens(点击快捷到达指定页面) 来生成一个 token,把 repoworkflow 两部分勾上即可。

image-20201111142402212

点击最下面的创建按钮后,图示部分即为你的PAT(图示的已经删除了,仅为演示),复制下来马上就要使用了

image-20201111145314326

填写PAT到Secrets

申请完毕后,在分支中点击Settings-Secrets-New secret

set_up_workflow

namePATValue填入上方申请到的PAT,保存即可

image-20201111144804807

手动触发一次代码同步

点击Actions,找到指定的脚本,按图示运行一次

image-20201111145720191

等待两分钟左右,能够发现代码全部同步过来了

image-20201111145920788

Enjoy

操作到这一步,表示您已经全部完成了

剩下的去配置cookie等secrets就好啦

re-tongbujiaocheng's People

Contributors

wt110488 avatar

Watchers

 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.