Rgfvfk Iff
Rgfvfk Iff

Reputation: 1609

git worktree update remote branch

I have a remote branch that I checked out in a worktree with

git worktree add ../test dummyRemoteBranch

I want to know if the dummyRemoteBranch is updated, how do I do a git pull so that the worktree has the most updated code?

Upvotes: 1

Views: 2651

Answers (1)

ElpieKay
ElpieKay

Reputation: 30868

cd ../test
git pull origin dummyRemoteBranch

If you want to sync with some other branch, replace dummyRemoteBranch with it.

Upvotes: 2

Related Questions