- Delete the local branch:
git branch -d local_branch- Fetch remote branch:
git fetch origin remote_branch- Rebuild the local branch with remote content:
git checkout -b local_branch origin/remote_branchgit branch -d local_branchgit fetch origin remote_branchgit checkout -b local_branch origin/remote_branchDear Reader, This Blog is closed and remains as an archive. Please find our new Blog at http://cleancode.consulting/