开坑, 记录使用git中爬过的坑
找不到仓库
现象
remote: Repository not found.
fatal: repository 'https://github.com/xxx/xxx.git/' not found
原因 更换了github账号 解决 mac > 钥匙链 > 搜索github > 删除github.com对应的钥匙串 > 重新push代码 > 根据提示输入github用户名密码 > 成功 nice
同时使用github和公司内部的gitlab
配置rsa.pub映射
vim ~/.ssh/config
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
Host yourcompany.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa.pub