Remote
Add a remote repository
Section titled “Add a remote repository”git remote add origin https://github.com/user/project.gitPush commits
Section titled “Push commits”git push origin mainPull updates
Section titled “Pull updates”git pull origin mainFetch without merging
Section titled “Fetch without merging”git fetchBest practices
Section titled “Best practices”- Always pull (
git pull) before pushing (git push). - Check
git remote -vto list remote repositories.