You are here

8 May 2015

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
  1. # Add all files for an example.
  2. git add .
  3. # Add files to commit without editing the commit message.
  4. git commit --amend --no-edit
Programming Language: Bash