Git 2 reference · 4 entries

Git Remotes

Share work with other repositories: git clone, remote, push, fetch and pull.

NameDescriptionSince
git clone Copy a repository with its full history and set up origin as the remote; --depth makes a shallow copy.
git remote List, add, rename and remove the remote repositories a local repository talks to.
git push Upload local commits and tags to a remote branch; -u sets the upstream, and --force-with-lease rewrites history safely.
git fetch and git pull Download new commits from a remote (fetch), or download and integrate them into your branch (pull).

Was this page helpful?