Skip to content

Commit

Permalink
Revert "Ignoring build folder inside app module in Android projects"
Browse files Browse the repository at this point in the history
This reverts commit f4cf36c.
  • Loading branch information
friederbluemle committed Nov 2, 2015
1 parent ad12621 commit 3b0b688
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Android.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ gen/
# Gradle files
.gradle/
build/
*/build/

# Local configuration file (sdk path, etc)
local.properties
Expand Down

3 comments on commit 3b0b688

@nandakishorek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain why this was reverted? I'm using this ignore spec in my project.

@Gorcyn
Copy link

@Gorcyn Gorcyn commented on 3b0b688 Aug 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that each module created by Android Studio comes with an internal .gitignore that looks like this :

/build

I'm not a fan of nested .gitignore so I adopted other rules and you can do the same :

# Ignore nested .gitignore
*/.gitignore

# Ignore nested build folders
*/build/

@friederbluemle
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need for nested gitignore files or a special rule like */build/. A simple build/ in the root .gitignore (as it exists today) will also match nested build folders.

Please sign in to comment.