What does git fetch origin master:master
mean?
I mean the master:master
part: I know what git fetch origin
means, but what about the master:master
part?
The arguments after the remote ( origin
) are refspecs .
Using master:master
will overwrite your master
branch; see this answer .
See this answer for even more about git fetch
's behavior with and without refspec arguments.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.