Languages
[Edit]
EN

Git squash - change time of last commit to current time

1 points
Created by:
sienko
323

Quick solution:

git commit --amend --date="now"

If we squashed 3 commits into 1, sometimes we end up with commit time from 2 days ago and we want this 1 commit to have current time. Above command do the work.

Git - rebase & squash

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join