'Why does it give me an error message when I use git add? [closed]

I'm trying to add all the files using git all but an error message returns:

Error:

git: 'add' is not a git command.

I looked at git solutions but couldn't find any solution

git


Solution 1:[1]

Using --all instead of individual filenames will stage all changes (new, modified, and deleted) files.

You should use:

git add --all

Source: https://www.w3schools.com/git/git_staging_environment.asp

Solution 2:[2]

To add all files I generally use

git add *

Can you try that?

Solution 3:[3]

git all is not a valid git command.

You should use git add . to add all files. Then you can commit them.

I recommend this Google Course on Coursera. It is very complete.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CodErdal
Solution 2 Pravin
Solution 3 toten