3

Is there any way when I am adding new files to my project to make them be picked up by

git add -i 

If I make changes to an existing file, then that is ok. But creating a new file it is marked as untracked and git add -i does not pick it up.

Alex Cio
  • 6,014
  • 5
  • 44
  • 74
Trt Trt
  • 5,330
  • 13
  • 53
  • 86

2 Answers2

3

When you are in the interactive session of "git add -i" you can use the option number 4 to add untracked files

Aurélien Thieriot
  • 5,853
  • 2
  • 24
  • 25
1

Sometimes git add . and git add -i does not stage all changes whether tracked or untracked. You could try using git gui to choose which files to stage if you have it installed.

Dan Lister
  • 2,543
  • 1
  • 21
  • 36