What is the difference between “here goes” and “here it goes”?

Solution 1:

Here goes is an idiom that is usually used to express determination or optimism at the start of a risky or difficult task. The implicit subject of goes would be the party taking the action--think of it as shorthand for "Here I go," "here we go," "here you go," etc.

For this reason, I would not use here it goes in that way. It is more likely to be used in a more straight forward way: "Now, which drawer should I put this fork in? Oh, here it goes."