Git · Senior · Question 17 of 76
What is a refspec, like +refs/heads/*:refs/remotes/origin/*?
- ✓Correct answer: A mapping from remote refs to local refs for fetch or push
- 2A filter that excludes branches from
git log - 3A permission rule for which refs a user can push
Explanation
This default fetch refspec copies every remote branch into origin/*; + allows non-fast-forward updates. Custom refspecs fetch PR refs or mirror repositories.