• 0

How to clone just a single branch from a remote

If you have ever felt a need to keep a copy of different branches in different directories, you probably want to clone only the branch you want a copy of. This simple git command lets you do just that.

git clone -b mybranch whatever.git