git will always replace %g with the current file group.
git
Go to the first, previous, next, last section, table of contents.