Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,517 Members 37,317 Now Online
XDA Developers Android and Mobile Development Forum

[Guide] How to use Github

Tip us?
 
mdfzhi
Old
#21  
mdfzhi's Avatar
Senior Member
Thanks Meter 3,628
Posts: 4,012
Join Date: Jun 2011
wow nice tutorial mr tomek bookmarked!
 
mstfkaratas
Old
#22  
mstfkaratas's Avatar
Senior Member
Thanks Meter 133
Posts: 175
Join Date: Oct 2011
Location: Istanbul
very good tutorial, you can expand it with repo and gerrit guide.
To you, the sky is the limit….to me, it is just the beginning...
 
cowsquad
Old
#23  
cowsquad's Avatar
Senior Member
Thanks Meter 265
Posts: 1,098
Join Date: Aug 2009
Location: Portland, Oregon

 
DONATE TO ME
Awesome guide. I have trying to start understanding Github and this guide will do the trick

Sent from my Galaxy Nexus using Tapatalk 2
 
lippol94
Old
#24  
lippol94's Avatar
Recognized Developer
Thanks Meter 2,656
Posts: 2,184
Join Date: Nov 2010
Location: Cremona

 
DONATE TO ME
This thread is fracking useful!!
Thank you so much!

“The computer is incredibly fast, accurate, and stupid. Man is unbelievably slow, inaccurate, and brilliant. The marriage of the two is a force beyond calculation.”

These are my XDA Projects. Check them out!

RasBeanJelly Googleize MOD (maguro) - [link]
CyanogenMod9 Blueberry EDITION (I9000) - [link]
MIUI Mintberry EDITION (I9000) - [link]
Ultimate Kernel Cleaning Script (I9000) - [link]
Vexillum Theme Project (MIUI) - [link]
CyanogenRevamped Theme (ADW) - [link]
If you like my work
and you want to see it growing
consider a small donation :)
 
-DarkKnight-
Old
#25  
-DarkKnight-'s Avatar
Senior Member
Thanks Meter 1,223
Posts: 6,270
Join Date: Mar 2011
Location: Gotham
this should be sticked

 


Device: Nexus 5
Rom: CM11

Device: Galaxy SII T989
Rom: Broke

Device: Desire Z
ROM: Sold

Device: Acer Iconia A100
ROM: Bricked

Device: LG Optimus T, Nexus One
Status: Sold

The Following 2 Users Say Thank You to -DarkKnight- For This Useful Post: [ Click to Expand ]
 
eagleeyetom
Old
#26  
eagleeyetom's Avatar
Developer Committee / Senior Moderator / XDA Portal Team - OP
Thanks Meter 11,305
Posts: 6,029
Join Date: Jan 2011
Location: Somewhere in Poland

 
DONATE TO ME
Quote:
Originally Posted by -DarkKnight- View Post
this should be sticked
Thanks for your comments
If you feel that this guide deserve to be a sticky - report it
 
Prawesome
Old
#27  
Prawesome's Avatar
Senior Member
Thanks Meter 1,706
Posts: 9,023
Join Date: Sep 2011
Location: Error 404- Not found
Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto
"Thanks button is just to avoid "thanks" posts in threads. Nothing more than that. Don't ask in signature or post for it and defeat the purpose why it was introduced"
 
Rick_1995
Old
(Last edited by Rick_1995; 16th September 2012 at 09:19 PM.)
#28  
Rick_1995's Avatar
Recognized Developer
Thanks Meter 3,055
Posts: 1,114
Join Date: Sep 2009
Location: Whoville
Quote:
Originally Posted by eagleeyetom View Post
To discard all unstaged changes e.g. failed merge etc. type:
Code:
git checkout .
# to delete all changes

git checkout path/to/file
# to discard changes for a specific file
I found it better to use "git reset --hard" if you want to reset the current git project completely, more often you might have extra files lurking around so in a dirty way you could do
Code:
rm -rf ./
git reset --hard
Thanks for a refreshing course in git


Quote:
Originally Posted by Prawesome View Post
Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto
Afaik, -u is only used to set the upstream/remote repository to push/pull from.
The Following User Says Thank You to Rick_1995 For This Useful Post: [ Click to Expand ]
 
eagleeyetom
Old
#29  
eagleeyetom's Avatar
Developer Committee / Senior Moderator / XDA Portal Team - OP
Thanks Meter 11,305
Posts: 6,029
Join Date: Jan 2011
Location: Somewhere in Poland

 
DONATE TO ME
Quote:
Originally Posted by Rick_1995 View Post
I found it better to use "git reset --hard" if you want to reset the current git project completely, more often you might have extra files lurking around so in a dirty way you could do
Code:
rm -rf ./
git reset --hard
Thanks for a refreshing course in git




Afaik, -u is only used to set the upstream/remote repository to push/pull from.
Thanks. I'm going to add this in a free time

Sent from my X8 using xda premium
 
-DarkKnight-
Old
#30  
-DarkKnight-'s Avatar
Senior Member
Thanks Meter 1,223
Posts: 6,270
Join Date: Mar 2011
Location: Gotham
Quote:
Originally Posted by eagleeyetom View Post
Thanks for your comments
If you feel that this guide deserve to be a sticky - report it
You could also just pm a mod (ie. Yourself) to do it

Sent from the My Little Pony Official App

 


Device: Nexus 5
Rom: CM11

Device: Galaxy SII T989
Rom: Broke

Device: Desire Z
ROM: Sold

Device: Acer Iconia A100
ROM: Bricked

Device: LG Optimus T, Nexus One
Status: Sold


Tags
git, github, guide, pull request
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes