github - How to change commit date in upstream in Git? -


my colleague pushed commit our github repository. unfortunatlley has system date set 20 days ahead of real time. (4) commits have wrong date. change dates in these commits, additional work done based on these wrong-dated commits.

i found question: how can 1 change timestamp of old commit in git? , answers show how can it, dont think safe commit shas changed beacuse of teh date change , not sure happen changes based on original (wrong-dated) commits.

so, safe change dates , push changed commits? happen in github repository? presume new commtis created , old ones still there anyway ...

on other hand if leave wrong-dated commits tehy now, danger? far noticed network graph on github not work ...

you can change commits result in new history. can make github accept changes via git push --force change history. doing cause trouble other dev's pulling repo (they have reclone it).

the history based on sha's not when occurred. if @ dates after doing rebase see changes occurred 'after' subsequent ones. far problems repo or code, there no danger.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -