Git   发布时间:2022-04-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了在克隆后立即对未跟踪/非挂起的文件进行处理大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

做了一个git仓库的克隆,并且在git status ,我得到了untracked和unstaged(修改/删除文件。 然后,我为Mac设置fileMode = false,几个文件远离未分离。 但我不明白如何处理别人。 我已经从stackoverflow和其他地方尝试了一堆东西,但没有什么帮助。

所以我的问题是,为什么我克隆回购之后立即得到所有这些untracked / unstaged文件,以及如何解决它。 我使用Mac进行开发,但是我试图在Windows中克隆repo,看它是否相同。 它甚至更有趣:它说删除了一些unstaged文件

经过对git config的不同修改后,命令git config -l看起来像这样

苹果电脑:

git send-email thows Errno体系结构(..)与可执行体系结构(…)不匹配/usr/lib64/perl5/Errno.pm line 11

Git for Windows“无标签文件”来自“git diff”命令的响应

如何使用由Cygwin的Windows混帐创build的符号链接

不能添加用空格分隔的文件给git

SSL与浏览器,wget和curl一起工作,但与git失败

filter.lfs.clean=git-lfs clean %f filter.lfs.smudge=git-lfs smudge %f filter.lfs.required=true user.email=...hidden... user.name=...hidden... core.autocrlf=true core.precomposeunicode=true core.filemode=false core.trustctime=false alias.gr=log --graph --full-history --all --color --decorate core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.ignorecase=true remote.origin.url=https://bitbucket.org/...hidden... remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.demo.remote=origin branch.demo.merge=refs/heads/demo

赢得:

core.symlinks=false core.autocrlf=true core.fscache=true color.diff=auto color.status=auto color.branch=auto color.interactive=true Help.format=html http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt diff.astextplain.textconv=astextplain rebase.autosquash=true credential.Helper=manager core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false core.ignorecase=true remote.origin.url=https://bitbucket.org/...hidden... remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.demo.remote=origin branch.demo.merge=refs/heads/demo

我的git status如下所示:

苹果电脑:

在克隆后立即对未跟踪/非挂起的文件进行处理

赢得:

在克隆后立即对未跟踪/非挂起的文件进行处理

如何解决

Ubuntu / DigitalOcean – 无法获取软件包以在全新安装上安装git

提交到Github通过Github桌面应用程序(Windows)没有出现

警告:找不到模板/ share / git-core / templates | 致命的:无法find'https'的远程助手

如何在Windows中运行git-p4?

我的git 1.8.4.2-1有什么问题?

好了,经过一段时间的工作,我在这文章发现了两个解决方案(这也是Christoph提到的),它是filemode=false和小写双胞胎。 但未跟踪的文件仍然存在。 然后我明白,这些未跟踪的文件在其文件名中都有UTF8字符,而某些地方这些字符被文件系统和/或git误解了。 我看着这些文件,发现它们不再是实际的,所以我刚删除它们并提交了这个删除

大佬总结

以上是大佬教程为你收集整理的在克隆后立即对未跟踪/非挂起的文件进行处理全部内容,希望文章能够帮你解决在克隆后立即对未跟踪/非挂起的文件进行处理所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: