5

enter image description here

Hello,in my project I have a payroll system and sometimes I had to change my computer's date in order to test if my system works well, now as you can see I have made 2 previous commits on future dates, my question is what happens when these dates come? Will it override my commits? Because 23 sep and 23 October were supposed to be 23 August, and I have made much much more commits after these two.

Thanks.

isherwood
  • 58,414
  • 16
  • 114
  • 157
  • I doubt it. You can also check if your code uploaded to github in master is the current state of your project, with those commits and the ones you did after too. – Gonzalo F S Aug 25 '21 at 12:27

1 Answers1

4

What happens when these dates come? Will it override my commits?

No! Each commit is identified by an unique hash-code based on the actual content plus some metadata (like the IDs of the parent commits).


You could consider to change the date of the commits:

How can one change the timestamp of an old commit in Git?

jschnasse
  • 8,526
  • 6
  • 32
  • 72