To record a guitar clearly, you should ensure a quiet environment, use high-quality microphones, place them strategically near the soundhole or amplifier, adjust recording levels and gain to prevent distortion, use a good audio interface, and make sure your guitar is in great playing condition to produce a crisp sound.