Skip to main content

Command Palette

Search for a command to run...

How do I fetch only one branch of a remote Git repository?

Published
1 min read
S

I love learning about technology and sharing that with others

Motivation

There are times when i just wanted to clone the changes made by my colleagues and i wanted to check those changes in my local

How to do this

git fetch origin branch-name
git checkout branch-name

in most of the cases the remote is name as origin and we can follow this step to clone and use a particular branch in local

10 views

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)