22 | Sending Changes to Remotes |
You have to publish your repository somewhere that is accessible to
other members of your team. You send your changes to that
repository using the git push
command.
Calling git push
without any parameters
causes Git to assume you want to push all of your local branches
that have a matching branch on the origin
repository. You can provide both a remote repository and
a branch name.
git push
takes both named remote
repositories (that is, those that have been added via
git remote add
) and full URLs to remote
repositories.
You can provide a branch name to specify which branch to push, but
in order to provide a branch, you must specify a remote repository.
For example, to push your beta
branch to
your origin ...
Get Pragmatic Guide to Git now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.