checking branches work in git