-1

I have a repo where I kept my source code. I have cloned and built and run, and I am trying to remove file which is unversioned but unable to delete. I have tried with the below command

git clean -n -d 
git clean -f -d
git clean -f -d -x
git clean -x -i

see below image

enter image description here

It's not deleting when I try to delete manually, but after building the project again it's showing in git local change. Please help show me how to permanently delete the unversioned or local untracked file, so that after building the project it should not show in local change. I want to see only the local change file which is related to the project.

97x
  • 7
  • 5
MARSH
  • 117
  • 1
  • 7
  • 22

1 Answers1

1

You do not need to physically delete those files, because anyway they will be created during the build. Instead, you need to add those files to .gitignore file - either by name, or by file extension. As an example, more details could be found here.

kosist
  • 2,868
  • 2
  • 17
  • 30