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:
parent
f70a66e251
commit
cec70161f7
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user