English 中文(简体)
如何在更换汽车储存库的设置后,在核对档案中确定线末?
原标题:How to fix the line endings in checked out files after changing the autoclrf setting for a git repository?

我在视窗上布设了一个电梯存放处,并通知说,电线终点被定在UNIX风格。

为了确定这一数值,我将存放处的自动现值改为实值(.autocrlf=true)。

然而,我的所有盘点文件仍然有UNIX风格(LF)线上的回报。 我如何确定这些内容?

最佳回答

<><0> 行使以下指挥权将使你能够<>披露任何未经批准的变化。

为了在你核实的档案中确定终止线,你需要发布两项指令:

  1. git rm --cached -r . This removes everything from git s index.
  2. git reset --hard HEAD This resets all local changes.

如果你们有变化,这项任务就会变得更加困难。

您可使用dos2unix。 指挥是指在你再次试图投入的档案上,进行固定和停线检查。

一旦你设法进行任何必要的改动,你就可以利用上述两条指挥系统,重新确定存放处所有档案的底线。

问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签