When I tried to build a gradle project by git clone
, I was unable to build it because there was no file named local.properties
.(As far as the usage is concerned in the configuration file, it appears to contain the API key for bintray.)
So I commented out the description of local.properties
in a file, and I was able to build it just in case.Therefore, in this case, it is likely that we can continue developing the changed file by git update-index --assume-unchanged
.
I have a question, how should I deal with files that are generally project dependent and do not exist in the repository?Also, is the solution mentioned above appropriate?
git github
You can create a .gitignore
file in the top directory of the (local) repository, in which you want to ignore management.
Note:
Android app .gitignore-Qiita
#Local configuration file (sdk path, etc.)
local.properties
There is also a service called gitignore.io that automatically generates .gitignore
depending on the programming language and IDE you use.
© 2024 OneMinuteCode. All rights reserved.