Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com>
3.2 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 "AUTOTITLE."
{% 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 "AUTOTITLE."
{% endnote %}
{% data reusables.desktop.push-origin %}
-
If there are commits on the remote branch that you don't have on your local branch, {% data variables.product.prodname_desktop %} prompts you to fetch new commits from the remote. In the "New Commits on Remote" window, click Fetch.
-
Optionally, click Preview Pull Request to open a preview dialog where you can review your changes and begin to create a pull request. For more information, see "AUTOTITLE."
