# Reset to a commit git reset --hard # Rebase to a commit git rebase -i # Global username and email git config user.name "username" git config user.email "email"