You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The following commands require force push, check with your git repo admin to perform the fixes.
1. Interactive Rebase (Recommended for Fewer Commits)
git rebase -i <commit-hash>^
, where<commit-hash>^
is the parent of the commit you want to change.git commit --amend --author="New Author Name <[email protected]>" git rebase --continue
Example (Interactive Rebase):
Let's say you want to change the author of the commit with hash
abcdefg
:git rebase -i abcdefg^
abcdefg
.git commit --amend --author="New Author Name <[email protected]>"
git rebase --continue
git push --force
2. Filter Branch (For More Commits or Complex Changes)
git push --force --tags origin 'refs/heads/*'
3. BFG Repo-Cleaner (For Removing Sensitive Data)
Beta Was this translation helpful? Give feedback.
All reactions