How to fetch Remote Branch updates in local branch by Git?

The remote branch is the branch that resides in the remote repository.

If you want to match the code updates on the local branch same as the remote branch you can run the two git commands to match the local branch content identical to the remote branch.

git fetch origin
git reset --hard origin/<BRANCH_NAME>

Here BRANCH_NAME is the name of your branch to fetch content from the remote repository.

Just Run the above git command and your job is done.

Your local repository content same as your remote repository.