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

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *