For this, you just need to check out the branch that you are working on using
git checkout <branch_name>
Then you need to rebase this branch from the master use the following command for rebase:
git rebase master
Note: If your previous commits are public don’t do a rebase. Make sure to pull all the latest changes then pull to feature branch.