2

Not all folder in project uploaded to github as default. Is it ok?

such folder build not uploading to git as default. any reference about it? should I leave it or including folder build too?

How to do that?

Thank you

  • there is one file .gitignore in your project.. just decide what you want to upload and what not and, add name of file or folder to that file. it is not necessary to add build in commit becoz every time it will generate this folder whenever you build the project. – Learning Always Jun 27 '16 at 04:02

2 Answers2

1

By default build/ is part of .gitignore that is why it's not been uploaded on remote. This is perfectly fine.

Even if you wish to include it into remote repository.

  • git rm --cached .
  • git add -A
  • git commit -m "Message of your choice"
  • git push origin branch_name
Shravan40
  • 8,922
  • 6
  • 28
  • 48
0

Android projects now are created with a .gitignore file. gitignore specifies intentionally untracked files to ignore. So one of the files that are specified in gitignore is the build folder. Therefore when you commit, it doesn't get uploaded to git as default. You should leave it alone but if you want to, you can simply remove the build folder specified in .gitignore.

You can also look at this post as well. Hope this helps!

Community
  • 1
  • 1
Charles Li
  • 1,835
  • 3
  • 24
  • 40