git reset --hard HEAD
git clean -df
git rm -r --cached .
git branch -d {the_local_branch} (use -D instead to force deleting the branch without checking merged status)
git push origin --delete {the_remote_branch}
git config --global --unset user.password
git config --global --add user.password <new_pass>
#Find your SHA of previus state
git reflog
#Reset eg.
git reset --hard HEAD@{1}
git checkout -b branchname origin/branchname