zvv_sap
zvv_sap

Reputation: 33

git push with backdate

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.

Upvotes: 2

Views: 705

Answers (1)

VonC
VonC

Reputation: 1326006

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

Upvotes: 1

Related Questions