I want to download source code from the master-next branch using git as described in the Xilinx wiki.I tried this:#git clone git://github.com/Xilinx/u-boot-xlnx/tree/master-next.gitInitialized empty Git repository in /home/Hannan/master-next/.git/fatal: remote error:Xilinx/u-boot-xlnx/tree/master-next is not a valid repository nameEmail support@github.com for helpEven this failed:# git clone git://github.com/Xilinx/tree/master-next/u-boot-xlnx.gitInitialized empty Git repository in /home/Hannan/u-boot-xlnx/.git/fatal: remote error:Xilinx/tree/master-next/u-boot-xlnx is not a valid repository nameEmail support@github.com for helpThe command that works is: git clone git://github.com/Xilinx/u-boot-xlnx.gitBut how do I know that this will indeed fetch the master-next branch and not the master branch? How do I correctly fetch a specific branch using git?I am using RHEL 6, accessed via PuTTY.
Fetch a specific branch using git
git;github