-5
$ git add.
Error:
git: 'add.' is not a git command. See 'git --help'.

Did you mean this?
    add

Whenever I try to add all sub directories using "git add." command ,it gives the above error. And if I try "git add .",then the screen does not give any output(displays blank). eg: $ git add .

akshita
  • 1
  • 1
  • 1
    Error itself is saying the solution. There is no command as "git add." try doing "git add --all" or "git add " – Punith R Kashi Feb 28 '17 at 17:00
  • 1
    you can see documentation https://git-scm.com/docs/git-add – developer Feb 28 '17 at 17:00
  • 3
    `git add.` is not a command, nor is it a complete sentence. You probably mean `git add .` with a space. – Tim Biegeleisen Feb 28 '17 at 17:01
  • 1
    Possible duplicate of [Difference between "git add -A" and "git add ."](http://stackoverflow.com/questions/572549/difference-between-git-add-a-and-git-add) – developer Feb 28 '17 at 17:02
  • 2
    you need space between `add` and `.` – developer Feb 28 '17 at 17:04
  • "*And if I try "git add .",then the screen does not give any output(displays blank)*" That's because it worked. Git is the strong, silent, slightly mad type. If everything works, it won't tell you anything. Use `git status` to find out what's going on. – Schwern Feb 28 '17 at 17:06

1 Answers1

4

It looks like you are not leaving a space between add and the period. try: git add . or git add -A

documentation for git: https://git-scm.com/docs/git-add

Peter Halligan
  • 662
  • 5
  • 14