How to add files that you forgot to commit, or you want to create more changes to the last commit. It is really simple, just commit your changes and use amend.
NB: You can only do this, before you have push / pull. It is possible to force it, but only do that when you really know how git works.
Source code viewer
- # Add all files for an example.
- git add .
- # Add files to commit without editing the commit message.
- git commit --amend --no-editProgramming Language: Bash