2

I had to backdate my computer and without realizing pushed some changes to the remote git repository. Now when I see the commits in the git web view, my commit is shown as backdated. However, all the code has merged just fine it includes the changes from previous commits by other developers.

Will the backdate cause any problem ? Please let me know.

zvv_sap
  • 33
  • 5
  • You will have to define "cause problems". Git stores two date/time-stamps with each commit, but those dates have no real *meaning* to Git, they just allow you to show them or select commits according to their dates. Whether any other program wants to use them, and if so for what, is up to those other programs. – torek Jun 08 '17 at 05:51

1 Answers1

1

The merge is done according to the commit history, a 3-way merge based on a common ancestor.

It does not depend on the commit or author dates.

The commits are linked together through a parent relationship in a DAG, no matter what their date is.

http://eriqande.github.io/rep-res-web/lectures/diagrams/18333fig0302-tn.png
Source: "Branching and Merging" from Eric C. Anderson

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250