查看当前文件状态 使用git status查看文件状态,如果是空仓库,执行结果如下 $ git status On branch master No commits yet nothing to commit (create/copy files and use "git add" to track) 如果我们加入一个新文件main.c $ git status On branch master No commits yet Untracked files: (use "gi
[git查看某个文件修改历史] 1.使用git命令 git whatchanged charge.lua 显示某个文件的每个版本提交信息:提交日期,提交人员,版本号,提交备注(没有修改细节) git show 7aee80cd2afe3202143f379ec671917bc86f9771 显示某个版本的修改详情 2.visual studio code可以加载git history插件. Press F1 and select/type "Git: View History (git log)
在linux上配置了一个samba服务器,方便在linux上通过ide修改代码,然后发现一个很烦人的问题,就是没有修改权限,在使用命令 chmod 777 filename后可以修改了,然而使用git status 就会发现文件路径下出现了修改,使用git diff命令查看显示如下 old mode 100644 new mode 10755 因此想到屏蔽git对于文件权限的检查,使用如下命令即可完成 git config core.fileMode false 如果想要修改回来,只需要设置 g