Check whether there are any git commits to shelve