Apr 15, 2018 Visit this official site to download git on your computer. Once you do that, you can start using it with android studio. Now select the files you want to share and press Ok. You can also write a.
PermalinkJoin GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up Find file Copy path
679f51cMay 12, 2019
45 contributors
# Built application files |
*.apk |
*.ap_ |
*.aab |
# Files for the ART/Dalvik VM |
*.dex |
# Java class files |
*.class |
# Generated files |
bin/ |
gen/ |
out/ |
release/ |
# Gradle files |
.gradle/ |
build/ |
# Local configuration file (sdk path, etc) |
local.properties |
# Proguard folder generated by Eclipse |
proguard/ |
# Log Files |
*.log |
# Android Studio Navigation editor temp files |
.navigation/ |
# Android Studio captures folder |
captures/ |
# IntelliJ |
*.iml |
.idea/workspace.xml |
.idea/tasks.xml |
.idea/gradle.xml |
.idea/assetWizardSettings.xml |
.idea/dictionaries |
.idea/libraries |
# Android Studio 3 in .gitignore file. |
.idea/caches |
.idea/modules.xml |
# Comment next line if keeping position of elements in Navigation Editor is relevant for you |
.idea/navEditor.xml |
# Keystore files |
# Uncomment the following lines if you do not want to check your keystore files in. |
#*.jks |
#*.keystore |
# External native build folder generated in Android Studio 2.2 and later |
.externalNativeBuild |
# Google Services (e.g. APIs or Firebase) |
# google-services.json |
# Freeline |
freeline.py |
freeline/ |
freeline_project_description.json |
# fastlane |
fastlane/report.xml |
fastlane/Preview.html |
fastlane/screenshots |
fastlane/test_output |
fastlane/readme.md |
# Version control |
vcs.xml |
# lint |
lint/intermediates/ |
lint/generated/ |
lint/outputs/ |
lint/tmp/ |
# lint/reports/ |
Copy lines Copy permalink
This question already has an answer here:
- How do you synchronise projects to GitHub with Android Studio? 10 answers
I have a project in Android Studio. I want to add that project to a GitHub repository using android studio. How can I do that?
Tony Baby
Tony BabyTony Baby3,69622 gold badges1414 silver badges2020 bronze badges
marked as duplicate by Suragch androidSep 14 '17 at 1:01
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
4 Answers
- Sign up and create a GitHub account in www.github.com.
- Download git from https://git-scm.com/downloads and install it in your system.
- Open the project in android studio and go to File -> Settings -> Version Control -> Git.
- Click on test button to test 'path to Git executables'. If successful message is shown everything is ok, else navigate to git.exe from where you installed git and test again.
- Go to File -> Settings -> Version Control -> GitHub. Enter your email and password used to create GitHub account and click on OK button.
- Then go to VCS -> Import into Version Control -> Share Project on GitHub. Enter Repository name, Description and click Share button.
- In the next window check all files inorder to add files for initial commit and click OK.
- Now the project will be uploaded to the GitHub repository and when uploading is finished we will get a message in android studio showing 'Successfully shared project on GitHub'. Click on the link provided in that message to go to GitHub repository.
3,69622 gold badges1414 silver badges2020 bronze badges
You need to create the project on GitHub first. After that go to the project directory and run in terminal:
Oleg KhalidovOleg Khalidov
If you are using the latest version of Android studio. then you don't need to install additional software for Git other than GIT itself - https://git-scm.com/downloads
Steps
- Create an account on Github - https://github.com/join
- Install Git
- Open your working project in Android studio
- GoTo - File -> Settings -> Version Controll -> GitHub
- Enter Login and Password which you have created just on Git Account and click on test
- Once all credentials are true - it shows Success message. o.w Invalid Cred.
- Now click on VCS in android studio menu bar
- Select Import into Version Control -> Share Project on GitHub
- The popup dialog will occure contains all your files with check mark, do ok or commit all
- At next time whenever you want to push your project just click on VCS - > Commit Changes -> Commmit and Push.
That's it. You can find your project on your github now
planetmaker4,78722 gold badges1818 silver badges3131 bronze badges
Rohit PatilRohit Patil
First all of create a github account and project in github. Go to root folder and follow steps.
The most important thing we forgot here is ignoring file. Every time we run gradle or build it creates new files which are changeable from build to build and pc to pc.We do not want all the files from Android Studio to be added to Git. Files like generated code, binary files (executables) should not be added to Git (version control).So please use .gitignore file while uploading projects to github. It also reduces the size of project uploaded to server.
- Go to root folder.
git init
git add .
- Create .gitignore txt file in root folder. Place these content in file.
*.iml.gradle/local.properties/.idea/workspace.xml/.idea/libraries.idea.DS_Store/build/captures.externalNativeBuild
git remote add origin https://github.com/username/project.git
git commit - m 'My First Commit'
git push origin
Note : As per suggestion from different developers, they always suggest to use git from command line. It is upto you, how you prefer it most.
Prashant Kumar SharmaPrashant Kumar Sharma