As I was working on an issue, I wanted to make a pull request for the changes and the solution I implemented.
While following the contributing.md file it gave me a error saying your changes are not staged when the git commit -m command was executed.
The git add command is necessary to stage changes before committing them.
Without this step, the changes will not be included in the commit.
The command git add . stages all changes, or documentation will provide specific command to stage/add a specific file.
Including the git add command makes the documentation more accurate and ensures that users and most specifically the new comers follow the correct Git workflow when committing changes.
Thankyou.
As I was working on an issue, I wanted to make a pull request for the changes and the solution I implemented. While following the contributing.md file it gave me a error saying your changes are not staged when the git commit -m command was executed. The git add command is necessary to stage changes before committing them. Without this step, the changes will not be included in the commit. The command git add . stages all changes, or documentation will provide specific command to stage/add a specific file. Including the git add command makes the documentation more accurate and ensures that users and most specifically the new comers follow the correct Git workflow when committing changes. Thankyou.