2

I am using git for scm ofmy C project. What is the command to find all the files which are generated during build of the project like .o and .so files ? What I am asking is same as private files in in cleartool/clearcase.

Chandu
  • 1,837
  • 7
  • 30
  • 51

2 Answers2

1

You can start by listing ignored files, as I proposed in 2009:

git ls-files -o -i --exclude-standard

That is because those generated files are supposed to be in a .gitignore file.

The more general list is the untracked files

git ls-files -o --exclude-standard

That would be the closed of the ct ls-private I mentioned in 2013 with "ClearCase delete view private files only".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

There is no such command.

Git has no idea about the usage of different files. You tell git to track a file - it will track its history. How you locate those files will depend on your individual project (Makefiles, XCode/VisualStudio configuration etc.).

It is however possible to configure git to ignore such files using a .gitignore file. See the documentation for more info: https://git-scm.com/docs/gitignore

Arkadiusz Drabczyk
  • 11,227
  • 2
  • 25
  • 38
slebetman
  • 109,858
  • 19
  • 140
  • 171