一、第一次从远程git拉取代码,解决证书问题
git clone https://user@192.168.0.6:443/r/xxx.git
Cloning into 'xxx'...
fatal: unable to access 'https://user@192.168.0.6:443/r/xxx.git/': Peer's certificate issuer has been marked as not trusted by the user.
git config --global http.sslVerify false
二、git 提交用户名改为自己登录的用户名
git config --global user.email 123456@qq.com
git config --global user.name userA
可以通过以下命令查看配置结果
git config --list
实际上就是创建了在用户根目录创建了.gitignore文件,并写入了如下内容:
[http]
sslVerify = false
[user]
email = 123456@qq.com
name = userA
三、linux下比较并提交修改的代码
修改代码后,使用git gui图像工具比较代码修改。
使用git push提交代码。