git overwrite remote origin code example
Example 1: git overwrite urlk
# Overwriting an existing git url:
git remote set-url origin <git_url>
Example 2: git force push to remote
git push -f <remote> <branch>
# example: git push -f origin master
# Overwriting an existing git url:
git remote set-url origin <git_url>
git push -f <remote> <branch>
# example: git push -f origin master