In github there are different branch for different version.
Therefore choose the right branch is essential.
I choose gr-ieee802-11 as example:
sudo git clone git://github.com/bastibl/gr-ieee802-11.git --branch master
or
git branch git checkout -b master origin/master git branch
update code: git pull
Reference