It could have a literal meaning, namely to climb out of a hole, but the real meaning is the figurative one. It means to move from a financial deficit to being on the plus side of the ledger.This could occur in gambling, business, or personal finance.