Android project version control commit ignore table

After we create a project in Android Studio, we often use version control to control the code, but which files in the project should be submitted to version control?

In fact, Android Studio has already done it for you!

.gitignoreThere is a file under Project and app , as follows:

Ignored files under Project:

 

*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures

 

 

Ignored files in the app folder:

/build

 

It can be seen from the above that:

  1. All .imldocuments do not need to be submitted
  2. buildThe files in the folder do not need to be submitted, this is the compiled file
  3. Local settings related files do not need to be submitted
  4. The files during performance analysis will be in the /captures folder and do not need to be submitted

If you share the project on Github, do the following:

  1. Open AndroidStudio, create a new project
  2. VCS —>—> Import into version control  Share Project on GitHub

Then AS will automatically select which ones need to be submitted to version control, as shown below:

Overview

 

 

Model

 

 

Project

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326644553&siteId=291194637