Skip to content

Instantly share code, notes, and snippets.

View FireKepper's full-sized avatar
💭
keeping your soul

Huh, what are you doing here? FireKepper

💭
keeping your soul
  • XiaomiLand
View GitHub Profile
@FireKepper
FireKepper / gist:c4f7a793c3a0086e8f7ed599da209ae3
Created July 19, 2024 01:25 — forked from yano3/gist:1378948
git commit --amend --reset-author
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
@FireKepper
FireKepper / git-reset-author.sh
Created July 19, 2024 01:08 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD