alter origin reposity git in branch local code example Example: git replace with origin branch git reset --hard origin/<branch-name>