This is done the same way that you would initialize and commit a new repository regardless of the language.
Go just makes it a little easier to find your other Go projects thanks to the $GOPATH and the standards of the language. Simple example below.
Within project 1:
$ cd ~/go/src/github.com/StefanCepa/projectOne/ $ git init $ git add . $ git commit -m 'init' $ git remote add origin https://github.com/StefanCepa/projectOne.git $ git push -u origin master
Within project 2:
*same process as above