Search This Blog

Sunday, November 3, 2019

How to replace local git repository from remote in one go

Recently after git pull I found lots of conflicts in my local repository, since my code was outdated I wish to replace whole code base without resolving conflicts :

Following options helped me to solve the problem in one go:


git fetch --all

git reset --hard origin/



Hope it will help others too.

Cheers,

Kapil

No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts