Monday, January 6, 2025
HomeTechgit fetch a Remote Branch

git fetch a Remote Branch

To fetch a specific remote branch, use:

bash
git fetch <remote> <branch>

For example, to fetch the feature branch from the origin remote:

bash
git fetch origin feature

This updates your local repository with the latest changes from the specified branch without merging them into your current branch.

RELATED ARTICLES
0 0 votes
Article Rating

Leave a Reply

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
- Advertisment -

Most Popular

Recent Comments

0
Would love your thoughts, please comment.x
()
x