The. Gitignore and Gitignore Invalid resolution for Android Studio

Source: Internet
Author: User

On GitHub. Gitignore Template collection, there are various. Gitignore:https://github.com/github/gitignore

Own the. gitignore file for the project under Android Studio and added the Android.gitignore on GitHub

# OSX Files//mac os
. Ds_store

# Android Studio
*.iml
. idea

# Built Application files*.apk*.ap_# files for the Dalvik vm*.dex# Java class files*.class# Generated filesbin/gen/# Local Configuration file (SDK path, etc) local.properties# OSX files. ds_store# Android studio*.iml.idea# Gradle files.gradle/build/# Local configuration file (SDK path, etc) local.properties # Proguard folder generated by eclipseproguard/# Log Files*.log

Sometimes we find that adding a. gitignore file does not ignore the file we want to ignore, and the workaround is to clear the cache for the reason that Gitignore is not valid for the tracked file, and the file will appear in an untraceable form after the cache is cleared. And then re-add the commit again. The rules in the Gitignore file will work.

RM -R--'update. Gitignore'

Clear Cache Effective Method reference: Http://niltor.net/index.php/Home/Blog/showblog?id=5

The. Gitignore and Gitignore Invalid resolution for Android Studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.