One thing to consider is the key you are playing in. If your playing in a flat key, you are going to refer to that note as Gb. If not, it will be F#.
Example:
Key of E - the 2nd chord in this key will be F#
Key of Gb - you will refer to the first chord in the key as Gb
this is very simplified and doesnt give much theoretical explanation, but i think it will help you understand why and when a chord is referred to as a # rather than a b...

hope i helped, I apologize if there was any redundancy!