paint-brush
Amending and Updating a Git Commitby@smpnjn
309 reads
309 reads

Amending and Updating a Git Commit

by Johnny Simpson1mAugust 29th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Use `--amend` to update your git commit messages by adding a new file to your commit message. Use it to add files to an already committed change to your existing commit messages. For example, add style.css to your already made commit message, and the message for that commit will remain the same. Use `git commit --amend --no-edit` to add the same file to the existing commit message as you normally would like so, and use `git add` to your new commit.
featured image - Amending and Updating a Git Commit
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Mobillegends
Coffee-web
Learnrepo