Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Git>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

If you want to get your localhost gitGit repository to exactly match the remote gitGit repository, discarding the "divergent" parts, do:

git reset --hard origin/master

If you want to get your localhost git to exactly match the remote git, discarding the "divergent" parts, do:

git reset --hard origin/master

If you want to get your localhost Git repository to exactly match the remote Git repository, discarding the "divergent" parts, do:

git reset --hard origin/master

Source Link

If you want to get your localhost git to exactly match the remote git, discarding the "divergent" parts, do:

git reset --hard origin/master