To reset all changes after the last commit in git, you can use the following commands:
git reset HEAD --hard
git clean -fd
git checkout branch_to_rename
git branch -m new_name
git push -u origin :old_name new_name
To reset all changes after the last commit in git, you can use the following commands:
git reset HEAD --hard
git clean -fd
git checkout branch_to_rename
git branch -m new_name
git push -u origin :old_name new_name