1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-07 19:55:34 +02:00

fix(blog): add useful command to Git cheatsheet post

This commit is contained in:
Théo LUDWIG 2025-05-07 19:54:06 +02:00
parent f70a66e251
commit cec70161f7
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -88,6 +88,8 @@ git commit -m "Commit message"
# Commit changes in the past
git commit --date "10 day ago" -m "Commit message"
# Also update the committer date for the last commit
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' HEAD^..HEAD
# Add remote repository
git remote add <remote> <url>