Reset your git repository master branch

If you want to reset, and clean your git repository:

> > $ **git fetch origin && git reset --hard origin/master && git clean -f -d** > > > > There are two "-" before hard. > > > > $ git status > > > > On branch master > > > > Your branch is up-to-date with 'origin/master'. > > > > nothing to commit, working directory clean > >

The git status command is useful in confirming that the reset, and clean has worked.

Author | Miles Davenport

Career programmer, who designs, assembles, fixes, and supports customers, software and systems.