same as you said git checkout . will reset the head to the state that was once you `git pull origin $current_branch`
if you want to reset the branch to the state it was before pushing, like you committed multiple commits and you don't want to revert commit by commit, run this git reset --hard origin/$current_branch this will reset the head to the state that the origin has.
last thing if you want to remove the untracked files and folders use this : git clean -d -f _-d is for removing the directories, -f _to force it.