android git
i had problem with git in android. i didn’t add .iml and .idea which are generated by android studio. these files are kept changing themself
Add .idea and *.iml to .gitignore, you don't need those files to successfully import and compile the project.
https://stackoverflow.com/a/30737309
.
.
https://stackoverflow.com/a/48070133
gitignore를 설정하지 않아 생긴 문제 해결 과정
cd into project directory, git checkout and pull master branch
cd /home/your_user/project_directory git checkout master git pull origin master
edit .gitignore file to insert *.iml
git rm --cached **/*.iml git commit -a -m "rm all *.iml, update .gitignore" git push origin master
I was working on another maven & Java git project using Idea IDE and it seems to add *.iml in many of the child directories.
The glob syntax **/*.iml will cover all iml files in all directories within the current working directory.
.
.
바로위 해결책 수행하다 'Module not specified' error 문제발생
https://stackoverflow.com/questions/29087882/android-studio-run-debug-configuration-error-module-not-specified
.
.
gitignore template
https://firebase.google.com/docs/auth/android/manage-users#kotlin+ktx
gitignore template
#built application files *.apk *.ap_ *.aab # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties # Windows thumbnail db Thumbs.db # OSX files .DS_Store # Android Studio *.iml .idea #.idea/workspace.xml - remove # and delete .idea if it better suit your needs. .gradle build/ .navigation captures/ output.json #NDK obj/ .externalNativeBuild
.
.
.
.
ANDROID git reset
바로 전 commit 한 상태로 돌아가고 싶은 경우
https://stackoverflow.com/a/29616255














