push - Git pushing to the past fix -
one of coworkers testing new feature adding , had reset windows time 2 days ago. when completed feature committed , pushed without setting date today...
now structure of develop messed local 1 date showing me need pull 2 new commits past.
we have no idea how fix this.
i assume have somehow reset/rebase last 2 commits on origin , push them right time. because looks now, managed create entire new develop branch 2 commits pushed.
commit timestamps in git pretty purely cosmetic -- there's nothing internal uses them, clients might order display of things using times help. if that's wrong timestamps, i'd encourage chalk down experience , keep going.
if, on other hand, have issues structure of commits on branches, you've got bigger issues , question doesn't have enough information diagnose it. recommendation create new clone (probably using --mirror) , examine using gitk --all
. might want take @ reflog try work out commits should like. can work out how you've got want have.
Comments
Post a Comment