Course
summary


    0 chapters available

Loading...

Learn to use Git and Github from scratch

Difficulty: Junior ● Progress: 0 / 0 modules completed

Edit a commit

It is quite common to forget a detail when creating a commit.

So instead of creating a second commit to fix the first one (which implies a history containing faulty commits), you can use the commit command with the –amend option, like this:

Base commit:

$> git commit -am "[FEAT] User - Signup"
$> git status
On branch main
Untracked files:
    (use "git add <file>..." to include in what will be committed)
        User.js

You need to purchase this course to read this module!

Or !