Usually pronounced with a hard G. But it is derived from the word Illegitimate, so it probably started out with a soft G. Although it means the same it doesn't really carry the same vehemence as bastard. Usually friendly, almost a term of endearment, when used to a friend.
Bert.