Resetting local branch with remote branch
Commands
From the branch that needs to be resetted, issue the following commands:
git fetch origin
git reset --hard origin/<branch>
From the branch that needs to be resetted, issue the following commands:
git fetch origin
git reset --hard origin/<branch>
^a
- Maches anything that starts after a.
$b
- Matches anything that ends with b.