背景
在家远程办公的时候 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.`"继续阅读
在家远程办公的时候 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'
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 网站的提交记录上看,其是根据邮箱来辨识用户的,所以有必要分别针对不同的项目设置不同的 Git 名字 user.name
和邮箱 user.email
。
"GitHub/GitLab 为不同的项目修改提交名字 user.name 和邮箱 user.email(附:批量处理脚本)"继续阅读
apt-get update
apt-get install -y supervisor
service supervisor start
"使用 Supervisor 部署 Go(Golang) 应用"继续阅读
npm install <git remote url>
"npm 直接安装 GitHub/GitLab 仓库代码及npm link 本地调试"继续阅读
在国内(广州)服务器上 git clone
一个 GitHub 项目时,发现速度异常的慢;原因是 GitHub 的 CDN 被墙了;解决办法是把相关 IP 直接和域名绑定起来。
"解决国内 Linux 服务器下载(git clone)GitHub 代码太慢"继续阅读
0. 卸载 Git[如果已安装]
yum remove git
1. 安装 WANDisco repo 包
yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
# 或者
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm
# 或者
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
"如何在 CentOS 7.x/6.x 安装/更新新版 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 修改远程地址"继续阅读