-1

I know that I have to .gitignore the /build folder in project root. But there is also Application/build/ folder. Do i need to track it?

Update: I see there is another similar question but more general. But I don't see anyone there talking about issue like I have. It looks like if you put slash at the end it makes the difference: build/

And it looks like nobody talks there about Application/build folder. This must be new project structure because some people use /builder and it works for them. That's because they don't have Application/builder folder. I think.

vrBuilder
  • 9
  • 1
  • 5
  • 1
    I'm not in front of Android Studio at the moment, but if `Application/build` contains build artifacts then yes, you probably should be ignoring it too. – Tim Biegeleisen Jun 03 '18 at 04:38
  • 1
    `/build` is only files and folders in the project root. `/build/` is only folders in the root. `build/` is all folders. `build` is all files and folders. https://git-scm.com/docs/gitignore – OneCricketeer Jun 04 '18 at 03:38

1 Answers1

4

A typical AndroidStudio gitignore file does include the gitignore rule

build/

That would ignore any build folder, recursively from the top folder of the repository.
Including Application/build.

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