amend commit git remote code example
Example 1: git match remote master
git fetch origin
git reset --hard origin/master
Example 2: git rename remote
git remote rename old-remote-name new-remote-name
git fetch origin
git reset --hard origin/master
git remote rename old-remote-name new-remote-name