[Android] jackeagle:
Uploading Device Tree To Github

​

So Guys till now we learnt lot of stuffs and finally we build a Rom :highfive: During building the Rom we may have edited lot of stuffs in device tree :D:D To avoid those being repeated in case you delete the Tree or If your ROM is Unofficial then you have to upload the Device Source Tree to Github. There are lot of uses if you upload the device tree.

Lets Start with guide Now :D:D

1) Create a account in Github.

2) Generate a new SSH key

Enter Following command to Terminal

ssh-keygen -t rsa -C "your_email@example.com"

"your_email@example.com" = your github Email ID

After pressing Enter you will Observe the following output

# Creates a new ssh key, using the provided email as a label
[LEFT]# Generating public/private rsa key pair.
# Enter file in which to save the key (/home/you/.ssh/id_rsa):

Press Enter.[/LEFT]

Now you need to enter the passphrase

# Enter passphrase (empty for no passphrase): [Type a passphrase] # Enter same passphrase again: [Type passphrase again]

Once all done you will see the following in your Terminal.

Your identification has been saved in /home/you/.ssh/id_rsa.
[LEFT]# Your public key has been saved in /home/you/.ssh/id_rsa.pub.
# The key fingerprint is:
# 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@example.com

Now go to ~/.ssh folder and copy your id_rsa.pub content into account administration on github.com.[/LEFT]

That is go to github account settings and SSH

copy paste id_rsa.pub content there and save it done.:D:cowboy:

Now Its Time To Check If Everything Works.:highfive:

Enter The Following Command To Terminal

ssh -T git@github.com

It should display has follows

The authenticity of host 'github.com (207.97.227.239)' can't be established.
# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
# Are you sure you want to continue connecting (yes/no)?

type yes and press enter

Hi username! You've successfully authenticated, but GitHub does not
# provide shell access.

Now All Done Its Time To Upload The Device Tree To Github :cowboy:

Example Device and Rom : GT-I9082 and AOGP Rom.

In the following steps i take my example device and Rom just replace the device with your device and Rom with your Rom:cool:

Steps :

In Terminal

cd aogp/device/samsung/i9082

Then Type Following

git init

Setting up of the git files required to push the files to the github account will be done by following command

git add .

Now we need to comment on the files we are pushing to github hence enter following command

git commit -m "first commit"

Now Go to your Github account click on add button on top next to your username and Select New repository

enter the Name of your repository in my case you can see the ScreenShot below

now you can see some commands displayed enter the git link displayed in your repository created the terminal in my case

git remote add origin https://github.com/username/aogp_device_samsung_i9082.git

Last Step is To Push The Source to Github. Enter The Following Command in Terminal

git push origin master

The Passphrase is the same you entered while creating SSH key.

Finally your source is in Github now add Readme.md File and mention This is <ROM NAME> Device Tree For <Your Device>

:D:cool:You Have Successfully Uploaded your Device Tree To Github :cowboy::cowboy:

Credits

@rutvikrvr

@Kishan14

@k2wl (My Mentor and Inspiration for Android)

If You want to learn more about Github and Stuffs you can visit Following Guide by XDA Senior Moderator @

eagleeyetom

(Thanks a lot Sir)

Guide Link : http://xdaforums.com/showthread.php?t=1877040
​