The G code is a term which refers to a system of not snitching. The phrase started by propaganda used in Baltimore, MD to stop members of inner-city communities from snitching on each other. This is where the phrase “Stop Snitchin’” was formed. This is the bases for the G-Code.
G Code by Geto Boys is a good example.
a better example from the song is:
"See I be on some street shit, don't talk to police
I won't accept a visit from agents who wanna see
if I got shit to say about a nigga case
I'm a motherfuckin' nigga through and through, I ain't gay ......
...When the government is workin', real niggas never squeal "