---
title: "Discussion on \"Git: How to fetch a branch from the upstream to the local repo in 5 steps\" | Hashnode"
description: "Discussion on \"Git: How to fetch a branch from the upstream to the local repo in 5 steps\". Originally published on adiati.com.\nHello Fellow CodeNewbies 👋,\nI am collaborating with a friend to create a project in React.I created a repo for the project, and my teammate forked this repo.\nBackg"
url: "https://hashnode.com/posts/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps/620a7b084e82f0219d8f9d98"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Git: How to fetch a branch from the upstream to the local repo in 5 steps](https://adiatiayu.hashnode.dev/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps?utm_source=hashnode&utm_medium=feed)

Originally published on adiati.com. Hello Fellow CodeNewbies 👋, I am collaborating with a friend to create a project in React.I created a repo for the project, and my teammate forked this repo. Backg

Feb 14, 2022 · 3 min read · adiatiayu.hashnode.dev  
Updated Sep 10  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Ayu Adiati](https://hashnode.com/@adiatiayu)

@adiatiayu · The Netherlands

  
[View profile](https://hashnode.com/@adiatiayu)

Ayu is a tech blogger, open source contributor &amp; maintainer, and tech community enthusiast based in the Netherlands. She loves photography and iced coffee!

## Responses 2

Markdown supported · ⌘↵ to post

[Sajal Dewangan](https://hashnode.com/@sajal0208)

[Mar 22, 2024](https://hashnode.com/posts/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps/620a7b084e82f0219d8f9d98/comment/65fd61128dd4cbb95aa4012a)

Thanks a lot. It was really helpful.

I was trying to figure this all out from the last two hours. And you made me understand it in less than 5 minutes

[Ayu Adiati](https://hashnode.com/@adiatiayu)

[Mar 26, 2024](https://hashnode.com/posts/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps/620a7b084e82f0219d8f9d98/comment/65fd61128dd4cbb95aa4012a#reply-6602f46d4d2e7924a48cecf1)

Thank you! I'm glad to hear that it helps you 😊

[HRUTIK KUMTHEKAR](https://hashnode.com/@hrutikk)

[Aug 17, 2023](https://hashnode.com/posts/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps/620a7b084e82f0219d8f9d98/comment/64de258684b2e68932838acb)

Thanks a lot for the blog :)

[Ayu Adiati](https://hashnode.com/@adiatiayu)

[Aug 17, 2023](https://hashnode.com/posts/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps/620a7b084e82f0219d8f9d98/comment/64de258684b2e68932838acb#reply-64de2fc0618ead8c7a727932)

Thanks for reading! 🙂
