Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,583 Members 40,524 Now Online
XDA Developers Android and Mobile Development Forum

[guide][wip] [beginners] how to push a device tree to github

Tip us?
 
rutvikrvr
Old
(Last edited by rutvikrvr; 19th June 2014 at 01:56 PM.)
#1  
Senior Member - OP
Thanks Meter 620
Posts: 701
Join Date: Oct 2012
Location: Mumbai

 
DONATE TO ME
Default [guide][wip] [beginners] how to push a device tree to github

SO AS OF NOW WE HAVE GUIDES ABOUT HOW TO MAKE A KERNEL , ROM FROM SOURCE CODES..THIS GUIDE WILL TALK ABOUT PUSHING THE DEVICE TREE OR KERNEL TREE TO YOUR GITHUB ACCOUNT ...THIS IS A BEGINNER'S GUIDE IN THIS GUIDE I WILL ASSUME THAT UR BUILDING CM 11

STEP1:- CREATE A GITHUB ACCOUNT :P
STEP 2 :- CREATE A REPOSITORY BY CLICKING THE "+" beside ur user name and name it "vanir_device_samsung_i9082"
STEP 3 :- in the terminal navigate to the device folder
Code:
Select Code
cd vaniraosp/device/samsung/i9082
then we type
Code:
Select Code
 git init
this command sets up the git files required to push the files to the github account
STEP4: WE TYPE
Code:
Select Code
 git add .
THIS COMMAND ADDS ALL THE FILES WHICH ARE REQD TO BE PUSHED
STEP5: WE ADD A COMMENT TO THE FILES WE ARE ADDING .. IN THIS CASE WE WILL ADD "INITIAL REPO"
Code:
Select Code
 git commit -m "initial repo"
STEP 6 : WE ADD THE REPOSITORY TO WHICH WE HAVE TO PUSH THE FILES TO
Code:
Select Code
 git remote add origin https://github.com/username/vanir_device_samsung_i9082.git
STEP 7: THIS IS THE FINAL STEP WHERE WE ACTUALLY PUSH THE FILES TO THE GITHUB REPOSITORY
Code:
Select Code
 git push origin master
thats it ...YOU HAVE NOW SUCCESFULLY PUSHED UR FILES TO UR GITHUB ACCOUNT .... U SHOULD ADD THIS LINE IN THE README FILE .... VANIRAOSP DEVICE TREE FOR I9082 DERIVED FROM PAWITP'S DEVICE TREE


THIS GUIDE IS A WIP ... I WILL UPDATE IT SOON WITH PICTURES ..TO MAKE UL UNDERSTAND BETTER


CREDITS
1) @k2wl
2) help.github.com
3) @jackeagle



MY WORKS
 
1. RVR'S STOCK BASED ROM FOR GALAXY GRAND DUOS
2.VANIRAOSP 4.4 FOR GALAXY GRAND DUOS AND GALAXY S2 PLUS (GT-I9105P)
3. DIRTY UNICORNS 4.4 FOR GALAXY GRAND DUOS
4. CWM Recovery (6.0.36) FOR GALAXY GRAND NEO I9060
5.SLIMKAT 4.4 FOR GALAXY GRAND DUOS
6.AXXIONKAT 4.4 FOR GALAXT GRAND DUOS AND GALAXY S2 PLUS (GT-I9105P)
...MORE COMING SOON

HIT THANKS IF I HELPED U, DONATE IF POSSIBLE !!!!!
FOLLOW ME ON TWITTER AND GOOGLE + FOR LATEST UPDATES
The Following 8 Users Say Thank You to rutvikrvr For This Useful Post: [ Click to Expand ]
 
rutvikrvr
Old
#2  
Senior Member - OP
Thanks Meter 620
Posts: 701
Join Date: Oct 2012
Location: Mumbai

 
DONATE TO ME
reserved



MY WORKS
 
1. RVR'S STOCK BASED ROM FOR GALAXY GRAND DUOS
2.VANIRAOSP 4.4 FOR GALAXY GRAND DUOS AND GALAXY S2 PLUS (GT-I9105P)
3. DIRTY UNICORNS 4.4 FOR GALAXY GRAND DUOS
4. CWM Recovery (6.0.36) FOR GALAXY GRAND NEO I9060
5.SLIMKAT 4.4 FOR GALAXY GRAND DUOS
6.AXXIONKAT 4.4 FOR GALAXT GRAND DUOS AND GALAXY S2 PLUS (GT-I9105P)
...MORE COMING SOON

HIT THANKS IF I HELPED U, DONATE IF POSSIBLE !!!!!
FOLLOW ME ON TWITTER AND GOOGLE + FOR LATEST UPDATES
 
Trach
Old
#3  
Trach's Avatar
Junior Member
Thanks Meter 25
Posts: 15
Join Date: Jul 2014
It would be pretty nice if you can add in on how to cherry-pick and git log --graph.Anyways,this guide is very detailed and useful overall and have an awesome say ahead [emoji1][emoji1][emoji106]


Sent from Planet Phaser
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -Rich Cook

 
rutvikrvr
Old
#4  
Senior Member - OP
Thanks Meter 620
Posts: 701
Join Date: Oct 2012
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by The-Grape View Post
It would be pretty nice if you can add in on how to cherry-pick and git log --graph.Anyways,this guide is very detailed and useful overall and have an awesome say ahead [emoji1][emoji1][emoji106]


Sent from Planet Phaser
Yea sure ... As u saw .. This guide is a wip .. I will add pictures and more .. Fr users to get a better idea of how its done



MY WORKS
 
1. RVR'S STOCK BASED ROM FOR GALAXY GRAND DUOS
2.VANIRAOSP 4.4 FOR GALAXY GRAND DUOS AND GALAXY S2 PLUS (GT-I9105P)
3. DIRTY UNICORNS 4.4 FOR GALAXY GRAND DUOS
4. CWM Recovery (6.0.36) FOR GALAXY GRAND NEO I9060
5.SLIMKAT 4.4 FOR GALAXY GRAND DUOS
6.AXXIONKAT 4.4 FOR GALAXT GRAND DUOS AND GALAXY S2 PLUS (GT-I9105P)
...MORE COMING SOON

HIT THANKS IF I HELPED U, DONATE IF POSSIBLE !!!!!
FOLLOW ME ON TWITTER AND GOOGLE + FOR LATEST UPDATES
 
Trach
Old
#5  
Trach's Avatar
Junior Member
Thanks Meter 25
Posts: 15
Join Date: Jul 2014
Quote:
Originally Posted by rutvikrvr View Post
Yea sure ... As u saw .. This guide is a wip .. I will add pictures and more .. Fr users to get a better idea of how its done
Thanks a lot
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -Rich Cook

 
Trach
Old
#6  
Trach's Avatar
Junior Member
Thanks Meter 25
Posts: 15
Join Date: Jul 2014
Default [GUIDE]Git Advanced Methods

Sometimes,you might be wondering how can i update the device tree without deleting my current device tree but through applying the latest changes

Well today i will teach you a new function call cherry-picking.This function is one of the most known features of git as it provides simple and easy copy-pasting job for you

First of all,add the remote first.Note:The hello is the main remote for this link
Code:
Select Code
git remote add name url
eg: git remote add hello https://github.com/AOGP/android_packages_apps_Lightbulb.git
Second,fetch the remote
Code:
Select Code
git fetch name
eg: git fetch hello
Thirdly,once finish fetching.Copy the commit id from github
Code:
Select Code
git cherry-pick SHA-1/Commit ID
eg: git cherry-pick a7d0c5fc6df49a07855ccb36fb22fdaf321e20ba
If you faced any errors,solve them by typing and then see the red color files name in the terminal and fix them by comparing between <<<<<<<HEAD
Code:
Select Code
git status

Once done solving all the errors,push the commit to github to keep the authorship of the commit as it is rude to just use their work and put yourself as author
Code:
Select Code
git push [name of the remote] [your repository branch]
eg: git push origin master
The Following 2 Users Say Thank You to Trach For This Useful Post: [ Click to Expand ]
Tags
github, push
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Monitor What Your Phone’s Camera Sees with Android Wear

Having a smart device strapped to your wrist certainly has its merits. A … more

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more