try git statements without crashing if no get