3.0 KiB
title, shortTitle, intro, permissions, redirect_from, versions
| title | shortTitle | intro | permissions | redirect_from | versions | ||||
|---|---|---|---|---|---|---|---|---|---|
| Pushing changes to GitHub | Pushing changes | As you commit changes to your project locally, you can push those changes to {% data variables.product.prodname_dotcom %} so that others may access them from the remote repository. | People with write permissions can push changes to a repository. |
|
|
About pushing changes to {% data variables.product.prodname_dotcom %}
When you push changes, you send the committed changes in your local repository to the remote repository on {% data variables.product.prodname_dotcom %}. If you change your project locally and want other people to have access to the changes, you must push the changes to {% data variables.product.prodname_dotcom %}.
Before pushing changes, you should update your local branch to include any commits that have been added to the remote repository. If someone has made commits on the remote that are not on your local branch, {% data variables.product.prodname_desktop %} will prompt you to fetch the new commits before pushing your changes to avoid merge conflicts. For more information, see "Syncing your branch."
{% data reusables.desktop.protected-branches %}
Pushing changes to {% data variables.product.prodname_dotcom %}
{% note %}
Note: {% data variables.product.prodname_desktop %} will reject a push if it exceeds certain limits.
- A push contains a large file over {% data variables.large_files.max_github_size %} in size.
- A push is over {% data variables.large_files.max_file_size %} in total size.
If you configure {% data variables.large_files.product_name_long %} to track your large files, you can push large files that would normally be rejected. For more information, see "About {% data variables.large_files.product_name_long %} and {% data variables.product.prodname_desktop %}."
{% endnote %}
{% data reusables.desktop.push-origin %}
2. If {% data variables.product.prodname_desktop %} prompts you to fetch new commits from the remote, click Fetch.
3. Optionally, click Create Pull Request to open a pull request and collaborate on your changes. For more information, see "Creating an issue or pull request"

Further reading
- "Push" in the {% data variables.product.prodname_dotcom %} glossary
- "Committing and reviewing changes to your project"