The putting green has rules of its own, and most of them are kinder than the rules everywhere else.
Mark, lift and clean
On the green you may always mark your ball, lift it and clean it. Put it back on the same spot.
What you may repair
You may repair damage on the green: pitch-marks, spike marks and scrapes from shoes, old hole plugs, animal tracks. You may also brush away sand and loose soil. Use your hand, your foot, a pitch-mark tool, a tee or a club, and do not hold up play doing it.
What you may not
You may not repair aeration holes, natural bumps and bare patches, or the hole wearing at its edge. Those are part of the green as you find it.
If the ball or the marker moves by accident
If you or another player accidentally move your ball or your ball-marker on the green, there is no penalty. Put it back.
If the wind moves it
If wind or the slope moves your ball before you have marked and lifted it, you play it from where it stops. If it moves after you have lifted it and put it back, it goes back to its spot.
The flagstick
You may putt with the flagstick in the hole, and there is no penalty if your ball hits it. Decide before you putt whether you want it in or out. A ball resting against the flagstick is holed if any part of it is below the surface of the green.
In the rule book: Rule 13.