I followed what I saw on the Internet to fill a field of grass on GitHub, but all the commits I've done have been doubled.
I want to get rid of the new cloned commits, what should I do?
As the number of commits in a repository doubled, the grass faded as a whole.
Can't I go back on this? I don't know the Git Terminal well, so I'd appreciate it if you could explain it in detail.
git filter-branch --env-filter \
'if [ $GIT_COMMIT = {MY_HASH}]
then
export GIT_AUTHOR_DATE="Tue Aug 4 11:00:00 2020 +0900"
export GIT_COMMITTER_DATE="Tue Aug 4 11:00:00 2020 +0900"
fi'
git pull origin main --allow-unrelated-histories
git push origin main
I did it in the above way when I changed the date of the commit.
I've looked up a lot of blogs, but I can't get enough help on this.