How to git force pull from remote branch ?

How to git force pull from remote branch ?

In this post we will give you information about How to git force pull from remote branch ?. Hear we will give you detail about How to git force pull from remote branch ?And how to use it also give you demo for it if it is necessary.

When i was working on my Laravel application using git bitbucket repository, i fatch problem when first i did commit on my master branch and i think i did 3 or 4 commits, and my project partner pull also in his local system ,but we did wrong code in this commit so we required to remove that 3 or 4 commit from my bitbucket repository. he did remove that commits from his system but when i did pull but nothing to change, i also remove cache but same.

But At last i though i thing i have to hard pull that’s why i fired following command. if you also fatch problem like this then let’s see this command:

Example:

git fetch --all

git reset --hard origin/master

Hope this code and post will helped you for implement How to git force pull from remote branch ?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

66  +    =  74

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US