日期和时间/时区更改搞砸了git集成 [英] Date and Time / Timezone changes screw up git integration

查看:88
本文介绍了日期和时间/时区更改搞砸了git集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到这个问题似乎并不容易。


我想在不同的时区和不同的时间测试我的应用程序。  但是如果我在计算机设置为不同的时间或时区时进行更改,git似乎认为自上次提交以来没有任何更改,或者认为在提交后
仍然是未提交的更改。  如果我改变我的时区或日期时间,似乎完全搞砸了git ...我已经尝试了解决这个问题的所有方法我能想到但无法解决它?



任何提示?

解决方案

您好msollicito,


根据您的描述,功能的提交功能已受计算机时区的影响。以下是我的观点:


1)。我们可以在测试项目之前删除.git文件夹。但
请备份此文件夹。测试后,你可以恢复它。




2)。将项目复制到新文件夹,然后进行测试。在这种情况下,它不需要git,你可以删除.git文件夹。


真诚地,


奥斯卡


I have noticed that there does not seem an easy way around this problem.

I want to test my application in different timezones and against different times.  But if I make changes while my computer is set to a different time or timezone, git seems to think there are either no changes since the last commit or it thinks there are still uncommitted changes after I commit.  It seems to completely screw up git if I change my timezone or date time..  I have tried all the ways around this problem I can think of but cannot resolve it?

Any tips?

解决方案

Hi msollicito,

According to your description, the commit feature of feature has been impacted by computer time zone. And here are my opinions:

1). We could delete the .git folder before you test your project. But please backup this folder. After testing, you could restore it.

2). Copy your project to a new folder, then test it. In this situation, it does not need git, you could delete .git folder.

Sincerely,

Oscar


这篇关于日期和时间/时区更改搞砸了git集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆