Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

What is `git remote prune origin` versus `git gc`?

IntermediateConceptConflicts, remotes, fetch, pull and push
Answer

remote prune removes stale remote-tracking refs only (same effect as fetch --prune). gc cleans up objects locally. They solve different problems.

All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push