Github adalah layanan yang cukup populer yang digunakan para developer untuk kolaborasi dengan para developer lain di seluruh dunia. Github sendiri banyak digunakan sebagai manajemen proyek dan sistem versioning code serta platform jaringan sosial bagi para developer.
Lalu bagaimana cara menghubungkan Android Studio dengan Github?
- Membuat Repository terlebih dahulu di Github
- Menginisialisasi Git di dalam proyek aplikasi yang telah dibuat
- Menambahkan remote pada aplikasi yang sedang kita kembangkan/develop agar dapat terkontrol
- Melakukan Commit & Push proyek aplikasi yang telah dibuat ke dalam Github
Pastikan kalian sudah Login pada akun https://github.com/ , jika belum dapat Sign Up langsung dalam website tersebut.
Pertama, untuk membuat Repository dapat menggunakan 2 cara, yaitu :
- Setelah kalian Login, pada panel sebelah kiri dapat terlihat menu “Repositories”, lalu klik tombol “New”

- Melalui menu pada pojok kanan atas, terdapat lambing “+” sebelah lonceng, setelah diklik akan tampil “New repository”

Setelah memilih New Repository, akan langsung diarahkan ke halaman untuk membuat repository dengan nama dan deskripsi yang diinginkan.

Setelah memasukkan nama repository, tekan tombol “Create repository”, maka akan tampil halaman berikut ini :

Langkah berikutnya yaitu membuka Android Studio, jika belum meng-install dapat mengunduh pada laman https://developer.android.com/studio
Untuk menginisialisasi Git pada Project Android, perintahnya sebagai berikut :

Menambahkan remote pada aplikasi agar dapat terkontrol dengan Github, perintahnya yaitu :
|
git remote add origin https://github.com/danypam/Mobile-MeetingBPPT.git |

Untuk menambahkan semua file atau memperbaharui semua file yang ada, perintah yang dilakukan seperti berikut :

Selanjutnya, melakukan Commit & Push aplikasi yang telah dibuat ke dalam Github, perintahnya :
|
git commit -m "Meeting BPPT v1.0" |
Teks “Meeting BPPT v1.0” dapat diubah sesuai keinginan, teks tersebut hanya untuk memberi tanda commit yang telah dilakukan.

Jika muncul error à fatal: unable to auto-detect email address, lakukan perintah berikut :
|
git config --global user.email you@example.com git config --global user.name "Your Name" |

Lalu, Push projek ke dalam Origin Master, perintahnya :
|
git push -u origin master |

Selesai, Reload halaman web yang sebelumnya dan akan muncul tampilan berikut ini :

Selamat!! Sekarang project aplikasi android sudah terhubung dan berhasil ditambahkan ke Github kalian.
Trial and Error! Happy Coding!
47 Comments
lengkap.. ijin bookmark mas,,
Like!! Great article post.Really thank you! Really Cool.
A big thank you for your article.
Thank you ever so for you article post.
Good one! Interesting article over here. It’s pretty worth enough for me.
I love looking through a post that can make people think. Also, many thanks for permitting me to comment!
This is one awesome article.Really looking forward to read more. Really Great.
If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela
Loving the information on this site, you have done outstanding job on the articles . Zorana Manuel Kramlich
Im obliged for the blog. Really thank you! Want more. Josepha Thorny Estey
Im obliged for the article post. Really looking forward to read more.
There is clearly a bunch to identify about this. I think you made various nice points in features also. Joell Octavius Sarine
I think this is a real great post. Thanks Again. Keep writing. Chrysler Gustave Kuhn
Some genuinely choice articles on this website , saved to bookmarks. Ulrikaumeko Ichabod Immanuel
I am sure this piece of writing has touched all the internet users, its really really good post on building up new blog. Emeline Clint Pascoe
Reiki is hard to master, but i would really love to learn it in a short period of time. Bertha Mart Naima
It’s remarkable designed for me to have a website, which
is beneficial in support of my know-how. thanks admin
Hello there! This post could not be written any better!
Reading this post reminds me of my good old room mate!
He always kept chatting about this. I will forward this write-up to him.
Fairly certain he will have a good read. Many thanks for sharing!
Amoxicillin Dosage For Strep EmPagisa cialis online prescription Exceneengeds Keflex Side Effects
is viagra from india safe viagra soft tabs overnight delivery viagra off patent
mens ed pills the people’s pharmacy best drugstore eyebrow pencil
canada drugs canada rx pharmacy best drugstore setting spray
pharmacies discount rx uk pharmacy
drugstore cowboy 24 hour pharmacy near me 24 hours pharmacy
best drug store primer http://pharmacy-onlineasxs.com/ canadian pharmacy cialis
canadian pharmacies online mens ed pills pharmacy rx world
Hey there. I discovered your web site by means of Google even as searching for a similar matter, your site got here up. It appears to be good. I have bookmarked it in my google bookmarks to visit then. Irena Wilhelm Adkins
I visited several blogs except the audio quality for audio songs current at this site is in fact marvelous. Godiva Bendicty Kahn
drugs from canada online pharmacy intern pharmacy canada
buying viagra italy viagra users comments viagra pills for sale
where to buy viagra in perth priority mail viagra with dapoxetine herbal viagra samples
hepatitis c virus (hcv) Viagra Super Active online drugstore pharmacy
online drugstore pharmacy online pharmacies uk top rated canadian pharmacies online
buy prescription drugs canada buy viagra online canadian mail order pharmacies
online canadian pharmacy online pharmacies no prescription canadian drugs online pharmacy
cialis professional wikipedia top sale viagracialis purchase cheap cialis soft tabs
cialis professional compare prescription prices pharmacy online cheap
best place to buy viagra paypal top viagra affiliate buying viagra in bali
report on ageing of cash advances payday loan mississauga cash loans no credit check unemployed
side effects of viagra cialis levitra preco viagra cialis is it ok to take cialis with food
does cialis cure ed cialis y los ojos acheter cialis au luxembourg
cash advance on american express green card cash advance foreign atm payday loans in rialto ca
payday loans online direct lenders canada approve my payday loan reviews on purple payday loans
cash loans canoga park cash advance wpb cash advance hwy 29 pensacola fl
male viagra pill walmart before and after viagra does insurance cover viagra
8b5h0 38y3h 4h7s
sfter market cialis cialis 60 cialis usa