2017 February 22

Git: Reset local branch to make it the same as remote branch master

Go to your local repository in bash

$ git fetch origin

$ git reset –hard origin/master

To clean and remove untracked files and directories

$ git clean -fdx

Share it onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn