Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How to replace local with remote branch entirely in Git?

Asked by Rishabh Dwivedi Jul 12, 2021 2.4K views 1 answer
Share

About this question

I have two branches:

  1. local branch (the one which I work with)

  2. remote branch (public, only well-tested commits go there)

Recently I seriously messed up my local branch.

How would I replace the local branch entirely with the remote one, so I can continue my work from where the remote branch is now?

I have already searched and checked out to the remote branch locally does not have any effect. How git replace local with remote?

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.