git pull origin main

Category: Git - Core

git pull origin main

Pull from a specific remote and branch

Pulls from a specific remote (origin) and branch (main) explicitly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.