I know this question is quite old, but that’s what actually worked for me:
git commit --date="10 day ago" -m "Your commit message"
More Related Contents:
- How to convert a Git repo to a submodule, which is nested in another (parent) Git repo?
- Why does ‘git commit’ not save my changes?
- How to change the commit author for one specific commit?
- When do you use Git rebase instead of Git merge?
- How do you merge two Git repositories?
- What’s the difference between git reset –mixed, –soft, and –hard?
- Make the current commit the only (initial) commit in a Git repository?
- Distributed Version Control Systems and the Enterprise – a Good mix? [closed]
- How to remove/delete a large file from commit history in the Git repository?
- Managing large binary files with Git
- How can I recover from an erronous git push -f origin master?
- Writing a git post-receive hook to deal with a specific branch
- Vendor Branches in Git
- What are the differences between “git commit” and “git push”?
- What is the Difference Between Mercurial and Git?
- How do I rename both a Git local and remote branch name?
- Git – Ignore files during merge
- Delete all local git branches
- How to find the commit in which a given file was added?
- What are the differences between local branch, local tracking branch, remote branch and remote tracking branch?
- Is it possible to alias a branch in Git?
- git pull –rebase lost commits after coworker’s git push –force
- How do I rename a repository on GitHub?
- git-svn: how do I create a new svn branch via git?
- How do you fork your own repository on GitHub?
- Commit only part of a file’s changes in Git
- How can I revert uncommitted changes including files and folders?
- Git: Is there a way to figure out where a commit was cherry-pick’ed from?
- How to attribute a single commit to multiple developers?
- Getting started with Version Control System