local branch branch=$(git branch --show-current) git fetch origin && git reset --hard "origin/$branch"