Git – What is “Refspec”

A refspec tells git how to map references from a remote to the local repo. The value you listed was +refs/heads/*:refs/remotes/origin/* +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*; so let’s break that down. You have two patterns with a space between them; this just means you’re giving multiple rules. (The pro git book refers to this as two refspecs; which is … Read more