我有一個Android應用程序,我檢查了混帳。我正在使用Intellij。當我在與最初創建應用程序不同的機器上工作時,我遇到了一些文件(路徑是針對不同機器)的問題。我的Android Intellij項目的.gitignore中應包含哪些文件?
我可以安全地在我的gitignore中包含哪些文件?我看到AndroidStudio的帖子;有什麼額外的文件,我應該知道爲Intellij?
當確定哪些文件放在我的gitignore中時,編輯是否重要?
我有一個Android應用程序,我檢查了混帳。我正在使用Intellij。當我在與最初創建應用程序不同的機器上工作時,我遇到了一些文件(路徑是針對不同機器)的問題。我的Android Intellij項目的.gitignore中應包含哪些文件?
我可以安全地在我的gitignore中包含哪些文件?我看到AndroidStudio的帖子;有什麼額外的文件,我應該知道爲Intellij?
當確定哪些文件放在我的gitignore中時,編輯是否重要?
這一次爲我的作品:
#built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# Git backup files
*.orig
# generated files
gen/
# Local configuration file (sdk path, etc)
local.properties
# Windows thumbnail db
Thumbs.db
# OSX files
.DS_Store
# Android Studio
.idea/*
.gradle/*
build/*
*.iml
gradle.properties
檢查了這一點:Sample Android Project: Google
該文件是從由谷歌的Android的樣本項目回購服用。
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project files
.classpath
.project
# Proguard folder generated by Eclipse
proguard/
proguard-project.txt
# Intellij project files
*.iml
*.ipr
*.iws
.idea/
*.pydevproject
.project
.metadata
.gradle
build/**
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
# Android Studio project files
*.iml
.gradle
.idea
build
import-summary.txt
的IntelliJ/Android的工作室,我忽略'/ .idea'什麼,以及任何'* .iml'和'* .iws'文件 – Karakuri
一切都在建。 –
@torkleyy啊,我沒有看到這個問題 – sparkyShorts