Git

Force push into a git repository

Git

Following command will ignore the changes in remote and pushes the current changes Ref: Git Force Push

git push --force origin <branch_name>

Prefer using --force-with-lease instead

git push --force-with-lease origin <branch_name>