The unwritten rules of the street. No snitchin, no testifying, no cooperation with law enforcement, no letting anybody punk you, show respect to earn respect, no disrespecting of the game, no hating, mind your business, hold your own, accept the consequences of your crimes, remain loyal and true, money over bitches
the G code is a set very basic rules that if you follow very carefully, you will have the upper hand on anyone who means to do you harm. it is not so much a secret, as a humble understanding of the ways of the world. to boast and to flaunt are direct violations of it, so those who frequently speak in public about the G code do not fully grasp the concept. the G code is a way of life, a survival technique that has endured conflicts since the arrival of the first slave of the eastern seaboard.
a lot of rappers call themselves talking about the G code, but they don't really know!
To not snitch or talk to the police about a criminal matter, aka keeping your mouth shut.
-Frank Gussenberg, 1920s gangstershot 20 times during the St. valentine's Day Massacre, whose last words to the police when asked if he knew who shot him: ""I'm not gonna talk - nobody shot me."
The G- code is the street code for keeping your mouth shut. Not snitching. If you get 25 to life, and are able to get that reduced if you tell on your homies, thats breakin the G- code.