Git Hard Reset
git fetch --all
git reset --hard origin/branch_name
git pull origin branch_name
Clone last commit
git clone --depth=1 <remote_repo_url>
Replace existing GIT URL link
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Replace file with head revision
git checkout -- addons/machines_4_0/scripts/opc_communication.py