I'm checking to see if a remote needs a pull using a method from Check if pull needed in Git
I'm using the approach that looks like this in a Python script:
% git fetch origin
# See if there are any incoming changes
% git log HEAD..origin/master --oneline
I don't want to leave side effects, so I'm thinking that I should clear the fetch away. How do I do that?