huchuan2025/20-Area/202-Work/223-Utils/git/git特殊操作.md

10 lines
584 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- 当git status看不到中文而是只能看到utf8码的时候
- git config --global core.quotepath false
- 注 增加global配置后 会添加到.gitconfig中
- .gitignore文件并不是万能的如果一个文件已经被git管理那么gitignore则无法忽视这个文件
- git rm --cached <已经被管理的文件>
- 只查看某个文件夹的git变更并且查看每次变更修改了什么文件
- git log --name-status **-- path/to/folder** # 注意,文件夹路径只能写在后面
- git查看某一个提交的内容
- git show \<commit id\>
-