Skip to content

Commit bb6a189

Browse files
authored
Merge pull request github#28358 from github/repo-sync
Repo sync
2 parents b19caad + 129cdfb commit bb6a189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/desktop/managing-commits/amending-a-commit-in-github-desktop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ redirect_from:
1111

1212
## About amending a commit
1313

14-
Amending a commit is a way to modify the most recent commit you have made in your current branch. This can be helpful if you need to edit the commit message or if you forgot to include changes in the commit.
14+
Amending a commit is a way to modify the most recent commit you have made in your current branch. This can be helpful if you need to edit the commit message or if you forgot to include changes in the commit. When you amend a commit, you replace the previous commit with a new commit to your current branch.
1515

16-
You can continue to amend a commit until you push it to the remote repository. After you push a commit, the option to amend it is disabled in {% data variables.product.prodname_desktop %}. When you amend a commit, you replace the previous commit with a new commit to your current branch. Amending a commit that has been pushed to the remote repository could cause confusion for other collaborators working with the repository.
16+
If possible, you should only amend a commit that you haven't pushed to the remote repository. To amend a commit that has been pushed to the remote repository, you will need to use a force push to overwrite the commit history in the remote repository. Overwriting commit history may cause confusion for other collaborators working with the repository, because they may have already based work on the commit you have amended.
1717

1818
## Amending a commit
1919

0 commit comments

Comments
 (0)