The answers so far reflect the common perception that transfers are bad in and of themselves or reflective of poorly considered decisions. I don't think that's necessarily so.
The initial college commitment is the best step a player knows how to take toward his goals at the time he makes that decision, often before his senior year of high school. A transfer is often just a next best step he knows how to take toward his goals two or three years later, after his goals have undergone refinement and he deepens his own understanding of his needs, desires, and priorities.
In addition, there are outside variables beyond a player's control: coaching changes, injuries, a business model at many major conference schools consciously structured to bring in and sort through more recruits than less ruthless competitors, a coach whose job security so depends on winning now that he must nudge players out if they aren't already key contributors by sophomore year.
RJM sometimes mentions a stat whose source I don't know but whose substance I believe, that more than half of D1 baseball players transfer. He also reminds people that only 20 or so players get meaningful playing time out of a D1 roster of 35 or a lower division roster of who knows how many. These numbers tell us that the overwhelming majority of college players, no matter how carefully they researched their decision, do not get the experience they thought they would get when they committed, often through no fault of their own.
But that's okay, because the rest of their lives will be the same way. You make the best choices you can with the information you can gather and evaluate in the time available. Then life unfolds in ways you couldn't foresee. Then you re-evaluate everything and make the best choice to move on from wherever you find yourself to wherever you think you want to go.
Don't fear the transfer. Developing the confidence, courage and initiative to change one's surroundings when necessary to pursue success and happiness is an important life skill.