Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganized changing commit message docs #229

Merged
merged 4 commits into from
Oct 8, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update changing-a-commit-message.md
  • Loading branch information
Ruth-ikegah authored Oct 8, 2020
commit 9e6b0a6dd3624d416cd916f615c59708982fca54
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ If you need to amend the message for multiple commits or an older commit, you ca
#
# Note that empty commits are commented out
```

3. Replace `pick` with `reword` before each commit message you want to change.
```shell
pick e499d89 Delete CNAME
Expand All @@ -98,16 +97,11 @@ If you need to amend the message for multiple commits or an older commit, you ca
```
4. Save and close the commit list file.
5. In each resulting commit file, type the new commit message, save the file, and close it.

{% warning %}

When you're ready to push your changes to GitHub, use the push --force command to force push over the old commit.
6. When you're ready to push your changes to GitHub, use the push --force command to force push over the old commit.
```shell
$ git push --force <em>example-branch</em>
```

{% endwarning %}

For more information on interactive rebase, see "[Interactive mode](https://git-scm.com/docs/git-rebase#_interactive_mode)" in the Git manual.

{% tip %}
Expand Down