Freitag, 23. November 2018

GIT - Replace local branch with remote branch.


  • 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_branch


NEW BLOG! http://cleancode.consulting/

Dear Reader, This Blog is closed and remains as an archive. Please find our new Blog at  http://cleancode.consulting/