02 2023 档案
摘要:
如果 git 没有设置 root 账户下的 user-name 和 user email,在 root 下 push 代码时,Committer 就可能变成 root,git 提交信息可能是下面这样: 由于之前没有在 root 下设置 user-name,因此这次在 root 下的提交中, Comm
阅读全文

摘要:
使用 SSH 协议传输文件的时候,需要把 SSH Client 端的密钥放到 Server 端中,因此需要在本地机器把生成的 SSH Key 复制到 Gitlab 中,这样就可以使用 SSH 协议在 Gitlab 上 clone 和 push 代码,否则就会提示缺少公钥: git@code.xxx.
阅读全文
