2

The file is under Release directory which is the binary file output place.

enter image description here

The other files would be presented once it was edited. But the text file under release directory doesn't.

I tried to use git bash.

git add /d/test/ClipBird/Release/bal.txt
fatal: D:/test/ClipBird/Release/bal.txt: 'D:/test/ClipBird/Release/bal.txt' is outside repository
Zhang
  • 3,030
  • 2
  • 14
  • 31

1 Answers1

1

You need to either move the file bal.txt to some location inside your Git repository folder, or add the binary Release folder to Git. I don't advocate the latter option, because, as you mentioned, this folder mainly contain binary output artifacts which should not be versioned by Git anyway.

You may want to take a step back and think about how bal.txt ended up the Release folder. Perhaps you should find a way to write this folder inside the Git repo folder.

Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360
  • Yes, I see. the [Rr]elease/ was ignored in .gitignore. I have to copy it to other directory. – Zhang Jan 04 '19 at 06:02