In QuickBooks Online, the type of transactions posted after importing them to your bank account is based on the mapping you've chosen. With this, it is recommended to exclude your transactions first that are posted a deposit. I'll show you how.
Go to Transactions.
Select Banking.
Under For Review, choose the deposits posted incorrectly.
Click Exclude.
Once done, make sure to reformat your CSV file first before following the steps below on how you can upload them:
Go to Transactions.
Select Banking.
Under Link account, select Upload from file.
Find and open the downloaded list of your credit card transactions.
Map the columns based on the QuickBooks requirements.
Don't hesitate to post again here if you have other questions or concerns with QuickBooks tasks and navigations. I'm always around happy to help. Take care and stay safe!