I've downloaded the latest kernel sources:git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitcd linux-stablegit tag -l | lessand picked v3.9.1.git checkout -b v3.9.1git branch --set-upstream v3.9.1 origin/master, pulled the distribution:git pulland ran:make kernelversionwhich always outputs:4.0.0-rc5, an unstable version. How may I download v3.9.1(a stable version)?
How to select the tag of the latest non-unstable/release candidate version?
linux kernel;git
When you rungit branch --set-upstream v3.9.1 origin/masteryou're telling git that you want your local v3.9.1 branch to track master on the remote. To get the remote v3.9.1 you can simply dogit checkout v3.9.1If you're using the repository you created previously, you'll need to delete your own v3.9.1 branch first:git checkout mastergit branch -d v3.9.1git checkout v3.9.1 will put you in detached HEAD state, at the commit tagged v3.9.1 on the remote (v3.9.1 is a tag on the remote, not a branch). Once you're there you can create a local v3.9.1 branch if you wish by runninggit checkout -b v3.9.1But whether or not you create a local branch, at this pointmake kernelversionshould output3.9.1As Devon points out you can do this in one shot when cloning the tree initially:git clone -b v3.9.1 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitThis works even though v3.9.1 is a tag, and you end up in detached HEAD state as above.