`-g` sets the initial, or primary, group. This is what appears in the group field in `/etc/passwd`. On many distributions the primary group name is the same as the user name.
`-G` sets the supplementary, or additional, groups. These are the groups in `/etc/group` that list your user account. This might include groups such as `sudo`, `staff`, etc.