I thought that Satoshi gave the github keys to Gavin ?
nope
satoshi was working on sourceforge right up to when he left december 2010
gavin however had his own repo on github thats started something like june 2010.
when satoshi left, gavin was deemed the main go to guy so people started using his github repo, which he opened up to other people to use aswell. he actually said in 2012-13ish that in a couple years he may move onto other projects
which he eventually did by giving the main maintainer keys to laanwj
gavin continued as just a contributor until core guys decided to cut gavin off due to the craig wright drama with a pretence that gavin "must have got hacked"