Checking ability to commit and push to repository