Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
471 B
471 B
- Pushing a branch to a new branch in remote.
git push --set-upstream <remote-path> <new-branch-name>
- Remove uncommited changes.
git restore .
- Rename author
git filter-branch -f --env-filter '
NEW_NAME="<new-name>"
NEW_EMAIL="<new-email>"
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
' --tag-name-filter cat -- --all