共有 3 篇文章
📅 最近更新
2019-04-14
- 2024-09-18
git 默认不区分文件名大小写
当你创建一个文件后,叫 readme.md 写入内容后 提交到线上代码仓库.
然后你在本地修改文件名为 Readme.md 接着你去提交,发现代码没有变化.
1git status
无任何提示信息.
其实 git 默认对于文件名大小写是不敏感的,所以上面你修改了首字母大写,但是git 并没有发现代码任何改动.
那么如何才能让 git 识别文件名大小写变化.
2019-02-11
- 2024-09-18
安装好的git环境 https://git-scm.com/
在U盘上创建空仓库test.git(我的U盘盘符在PC端是I盘)。
2019-02-10
- 2024-09-18
在git bash链接远程主机时连接失败
1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
5Someone could be eavesdropping on you right now (man-in-the-middle attack)!
6It is also possible that a host key has just been changed.
7The fingerprint for the RSA key sent by the remote host is
851:82:00:1c:7e:6f:ac:ac:de:f1:53:08:1c:7d:55:68.
9Please contact your system administrator.
10Add correct host key in /Users/isaacalves/.ssh/known_hosts to get rid of this message.
11Offending RSA key in /Users/isaacalves/.ssh/known_hosts:12
12RSA host key for 104.131.16.158 has changed and you have requested strict checking.
13Host key verification failed.
这种情况下并非是远程主机配置出现问题,而是曾经连接过一次此主机,而此次连接时缓存密钥不匹配