Credit and Divorce

How does getting divorced affect your credit? Who is responsible for the credit card bills?