I recently forked a project and applied several fixes. I then created a pull request which was then accepted.
A few days later another change was made by another con
rm -rf oldrepository git clone ...
There may be subtler options, but it is the only way that I have any confidence that my local repository is the same as upstream.