-4

So i do some changes in my project and i did git status in terminal and i get

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   X.php
        modified:   Y.php
        modified:   Z.php

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        A.php
        B.php

So my question is if i now do git add . all the 5 files will be add? cuz i need A and B file to merge.

Or i need to use another command to track A and B file again

Biffen
  • 6,249
  • 6
  • 28
  • 36
  • 3
    Welcome to Stack Overflow! Have you read the Git manual, in particular on `git add`? Or taken a Git tutorial? `git add` when without files being specified, or the `-a` switch, only adds files that are already indexed (added from before) by Git for the repository. – Armen Michaeli Aug 30 '21 at 13:06
  • 7
    The first line under "Untracked files:" is telling you: *use "git add ..." to include in what will be committed*. Was there a problem with that? – Peter Krebs Aug 30 '21 at 13:07

1 Answers1

0

I guess you can Run

git add A.php

git add B.php

command

Sarvesh
  • 95
  • 1
  • 13