Your credit score is inherently separate from your spouse's credit score. That said, some of your credit could be tied up with your ex-spouse if, during the marriage, you shared joint accounts or took out a loan in both of your names. Once your divorce has been finalized, you can take steps to fully separate your credit from your ex-spouse.
First, close any joint accounts - bank accounts, credit card accounts, and other financial accounts. Do this as quickly as possible, and try to pay off joint debt as soon as you can. Keep in mind that the divorce decree may have assigned responsibility for paying off debt to one spouse.
If you're unable to close a joint account or pay off outstanding debt, speak with your card issuer or lender to convert to an individual account, if possible. This may be possible by making sure your ex-spouse is no longer an authorized user or account holder. Similarly, if your ex plans to use a joint marital account in the future, request that your name be removed from the account as soon as possible.