Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git 大小写不敏感 #128

Open
lovelmh13 opened this issue Jul 26, 2021 · 0 comments
Open

Git 大小写不敏感 #128

lovelmh13 opened this issue Jul 26, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

  1. 使用 git config core.ignorecase false 让 git 大小写敏感 (感觉不太靠谱?)
  2. 用 git mv 来重命名
git mv -f [你想要删掉的文件] [你想要留下的文件]
git mv -f a.js A.js
 
等同于:
 
git rm a.js
git add A.js
  1. 先删除文件,再重新创建文件
$ git rm ; git add  ;  git commit -m "rename file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant