In Attack on Titan, how did the river barge escape Shiganshina in episode 2? In episode 2 of the anime, the characters start off in the Shiganshina district.  When and how did they get inside wall Maria?  It shows them on a river barge with other refugees, but I do not think that explains it.  Is there a gate on the river for the barge to go through?  If so, is the gate ever shown, explained or attacked?
The refugees just sailed into wall Maria. There isn't much more to it than that. As far as I know the river gates were never explained, but they have been shown. In chapter 1 you can see the river flow through the walls and in chapter 73 you can see in more detail how the river flows freely in and out the walls through bars. I assume them to be able to open similarly to the regular gates. They have not been attacked and it has not been explained why. At this point it makes more sense to attack the regular gates than the bars, seeing we don't even known whether Titans can even swim.