dev-resources.site
for different kinds of informations.
How do I make a Git commit in the past?
Published at
1/27/2024
Categories
git
github
commit
programming
Author
Atul Tripathi
How can I create a Git commit for a previous date? Here's the process:
Add your changes:
git add .
Commit your changes with a specified date:
git commit --date "10 day ago" -m "Your commit message"
or
git commit --date "24-02-2023" -m "Your commit message"
Finally, push your code:
git push
Thank you, and happy coding!
Articles
12 articles in total
try it out
read article
React Project (Celeb Short Bios): Short & Sweet!
read article
Eat That Frog! by Brian Tracy: Summary
read article
Becoming a Better Programmer
read article
Async Vs Sync in JavaScript
read article
How do I make a Git commit in the past?
currently reading
Web Socket Intro
read article
Difference between git rebase and git pull
read article
10 Tips for Faster and More Efficient Google Searches
read article
5 Tips for Boosting Your Twitter Account
read article
An Introduction to Machine Learning: What is it and How Does it Work?
read article
An Introduction to Artificial Intelligence: What is AI and How Does it Work?
read article
Featured ones: