checking local commit and checkout