插件
.gitignore文件
Git 服务器更换 IP 后,如何配置本地仓库?
通过修改配置文件的方式
打开本地代码文件夹目录下的 .git\config
文件,然后将里面 Git 服务器的旧 IP 地址修改为新的 IP 地址,最后保存,就可以了。
NOTE: 使用这种方式进行设置后,第一次进行 pull 或者 push 时,可能会出现以下提示:
The authenticity of host ‘xxx’ can’t be established.
RSA key fingerprint is xxx.
Are you sure you want to continue connecting (yes/no)?
解决方法:输入 yes,然后按 Enter 键即可。
原文链接:https://blog.youkuaiyun.com/benzhujie1245com/article/details/82980087