Open7
Git あれこれ

git config -l | grep filemode
で filemode が true になっていることを確認した上で
Linux なら通常通り chmod 755 file
など
Windowsなら git update-index --add --chmod=+x [filename]

権限変更の確認は git ls-files -s

最新にする git rebase master
まとめる git rebase -i HEAD ~~ まとめるコミット分

git reflog
git reset HEAD@{1} --hard (rebase操作の直前コミットを指定)

git reset --hard コミットハッシュなど
特定コミットまで戻る(そこまでのコミットや変更は消える)