You can file before or after you are married and his or her credit will not be impacted. There are tricky rules related to how a bankruptcy court looks at the income of other people in your household so you should consult an attorney before making and life changes.