New Android Studio Project With Github Integration on Win10
September 23, 2019Install Git
Install Git for Windows.
NOTE: If you are not familiar with git workflow, you should read Basic Guide to Git on Github.
Create Android Project
Create new Android Studio project.
.gitignore
A .gitignore
file is created by Android Studio, but I prefer to replace it with a more comprehensive one by referring github Android.gitignore example.
# built application files
*.apk
*.ap_
*.aab
# Mac files
.DS_Store
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Ignore gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
proguard-project.txt
# Eclipse files
.project
.classpath
.settings/
# Android Studio/IDEA
*.iml
.idea
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
# Google Services (e.g. APIs or Firebase)
google-services.json
# Android Studio captures folder
captures/
# Others
.cxx
Integrate with Github
Assuming Github project is not created yet, and we are using Android Studio to create the github project.
Android Studio -> VCS -> Import into Version Control -> Share Project on Github
- Repository Name
- Remote: origin
- Private
- Description
Click Share
Proceed with Prompt for commit.
NOTE: Do not click cancel as it will configure the necessary initial setup such as create remote master branch and perform commit and pull.
README.md
Add README.md file locally: Switch from Android
view to Project
view, right click on Parent directory and select New -> File
and out README.md
as the filename.
When promoted to add the new file to git, click Yes.
Edit README.md
# Project Name
Write something later
Click VCS -> Commit
which should perform a commit and push.
- algolia
- analytics
- android
- android-ktx
- android-permission
- android-studio
- apps-script
- bash
- bootstrap
- bootstrapvue
- chartjs
- chrome
- cloud-functions
- coding-interview
- coroutines
- crashlytics
- css
- dagger2
- datastore
- datetime
- docker
- eslint
- firebase
- firebase-auth
- firebase-hosting
- firestore
- firestore-security-rules
- flask
- fontawesome
- fresco
- git
- github
- glide
- google-app-engine
- google-cloud-storage
- google-colab
- google-drive
- google-maps
- google-places
- google-play
- google-sheets
- gradle
- html
- hugo
- inkscape
- java
- java-time
- javascript
- jetson-nano
- kotlin
- layout
- lets-encrypt
- lifecycle
- linux
- logging
- lubuntu
- markdown
- mate
- material-design
- matplotlib
- md5
- mongodb
- moshi
- mplfinance
- mysql
- navigation
- nginx
- nodejs
- npm
- nuxtjs
- nvm
- pandas
- payment
- pip
- pwa
- pyenv
- python
- recylerview
- regex
- room
- rxjava
- scoped-storage
- selenium
- social-media
- ssh
- ssl
- static-site-generator
- static-website-hosting
- sublime-text
- ubuntu
- unit-test
- uwsgi
- viewmodel
- viewpager2
- virtualbox
- vue-chartjs
- vue-cli
- vue-router
- vuejs
- vuelidate
- vuepress
- web-development
- web-hosting
- webpack
- windows
- workmanager
- wsl
- yarn