What does "dog it" mean?

Native speaker’s answer
Rebecca
The word "dog" here is used as a replacement for the swear word "damn". So "dog it" refers to saying "damn it". However, "dog it" is not a common phrase, and instead the expression used in place of this swear phrase is normally "dang it".