Thank for this amazing article, could you please help me with one more issue.
How do I add changes made after a commit to the last commit. For example, I just created a nav menu and committed, after which I made a small change which I don't want to commit on its own but to add to the last commit.
Sure thing! Firstly, you add the changes with git add, then change the last commit with git commit --amend.
If you pushed your commit to the remote repository to push this change you'll need to use git push --force.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank for this amazing article, could you please help me with one more issue.
How do I add changes made after a commit to the last commit. For example, I just created a nav menu and committed, after which I made a small change which I don't want to commit on its own but to add to the last commit.
Hope you understand and thank you in advance.
Sure thing! Firstly, you add the changes with
git add
, then change the last commit withgit commit --amend
.If you pushed your commit to the remote repository to push this change you'll need to use
git push --force
.