由于不可抗力,github时断时续,而gitee有需要实名认证,所以作为替代品jihulab可以作为git同步代码,同时可以向gitlab和github同步代码。
创建空repo
在https://jihulab.com创建空repo


Git 设置
cd ~/APP/PythonCode/sckit
git config --global user.name "生信探索"
git config --global user.email "aubot@hotmail.com"
git init --initial-branch=main
git remote add origin https://jihulab.com/BioQuest/sckit.git
git add .
git commit -m "Initial commit"
git push -u origin main
生成github token
在https://github.com/settings/tokens生成token

随便给token设置个名字和有效期

在下边选择token的访问权限
最后生成的token类似ghp_XXXXXXXXXXXXXXXXXXX这样
极狐向github同步代码
进入https://jihulab.com/BioQuest/sckit在左侧设置中选择仓库
远端仓库的URL是在github仓库的前边加上用户名@
把ghp_XXXXXXXXXXXXXXXXXXX填入到密码处

点击绿圈刷新便能同步,之后https://jihulab.com/BioQuest/scki更新后会自动向github推送更新,实现同步功能。

我的jihulab地址https://jihulab.com/BioQuest
jihulab 是用于代码协作的开源软件。使用精细的访问控制来管理git仓库,确保您的代码安全。执行代码审查并通过合并请求增强协作。每个项目还可以有一个议题跟踪器和一个 wiki。我们被超过 100,000 个组织使用,是管理本地 git 存储库的最受欢迎的解决方案。在about.gitlab.cn上阅读更多关于 GitLab 的信息。
网友评论