标签: GitHub
Go 实战|使用 Wails 构建轻量级的桌面应用:仿微信登录界面 Demo
使用脚本整合指定文件/文件夹,执行定制化 ESLint 命令
背景
最近面对一个庞大的项目,但是只需要修改某个模块,每次都手搓命令太麻烦了,于是就想着能不能写个脚本来辅助处理这些事情。
解决方案
定制化一键 ESLint,执行文件下载地址:
https://github.com/mazeyqian/go-gin-gee/releases/tag/v1.4.0
"使用脚本整合指定文件/文件夹,执行定制化 ESLint 命令"继续阅读
解决 `remote: You must use a personal access token with 'api' scope for Git over HTTP.`
背景
在家远程办公的时候 git clone
报错:
remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'api' scope for Git over HTTP.
"解决 `remote: You must use a personal access token with 'api' scope for Git over HTTP.`"继续阅读
解决 `Warning: the RSA host key for 'github.com' differs from the key for the IP address 'x.x.x.x'`
Warning: the RSA host key for 'github.com' differs from the key for the IP address 'x.x.x.x'
Offending key for IP in /root/.ssh/known_hosts:5
Matching host key in /root/.ssh/known_hosts:9
Are you sure you want to continue connecting (yes/no)?
You can add the RSA host key for github.com
to your server's known_hosts
file to avoid seeing this warning every time you run git pull
. Here's how to do it:
"解决 `Warning: the RSA host key for 'github.com' differs from the key for the IP address 'x.x.x.x'`"继续阅读
批量拉取/git pull 指定文件夹下面所有 Git 项目的最新代码
GitHub/GitLab 为不同的项目修改提交名字 user.name 和邮箱 user.email(附:批量处理脚本)
npm 直接安装 GitHub/GitLab 仓库代码及npm link 本地调试
一、npm 直接安装 GitHub/GitLab 仓库代码
语法
npm install <git remote url>
"npm 直接安装 GitHub/GitLab 仓库代码及npm link 本地调试"继续阅读
解决国内 Linux 服务器下载(git clone)GitHub 代码太慢
在国内(广州)服务器上 git clone
一个 GitHub 项目时,发现速度异常的慢;原因是 GitHub 的 CDN 被墙了;解决办法是把相关 IP 直接和域名绑定起来。
"解决国内 Linux 服务器下载(git clone)GitHub 代码太慢"继续阅读
Git 修改远程地址
以项目 https://github.com/mazeyqian/mazey 为例,查看远程地址:
# check
git remote -v;
origin https://github.com/mazeyqian/mazey.git (fetch)
origin https://github.com/mazeyqian/mazey.git (push)
"Git 修改远程地址"继续阅读