I just added additional remote A to my repo B and then run git fetch A. How can I undo the fetch? If I just remove remote A
remote A
repo B
git fetch A
You can undo all fetches from remote A simply by removing this remote:
A
git remote remove A
Now just add it again and fetch only single branch:
git remote add A git fetch A