[git] Add git-ignore helpers & change git-revert to revert single files