FORUMS
Remove All Ads from XDA

[Guide] How to use Github

7,116 posts
Thanks Meter: 13,793
 
By eagleeyetom, Developer Committee Lead / XDA Portal Team / Senior Moderator on 8th September 2012, 08:32 PM
Post Reply Email Thread
16th September 2012, 04:53 PM |#21  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,871
 
More
wow nice tutorial mr tomek bookmarked!
 
 
16th September 2012, 05:09 PM |#22  
mstfkaratas's Avatar
Senior Member
Flag Istanbul
Thanks Meter: 137
 
More
very good tutorial, you can expand it with repo and gerrit guide.
16th September 2012, 05:55 PM |#23  
cowsquad's Avatar
Senior Member
Flag Portland, Oregon
Thanks Meter: 318
 
Donate to Me
More
Awesome guide. I have trying to start understanding Github and this guide will do the trick

Sent from my Galaxy Nexus using Tapatalk 2
16th September 2012, 06:17 PM |#24  
lippol94's Avatar
Retired Recognized Developer
Flag Cremona
Thanks Meter: 2,659
 
Donate to Me
More
This thread is fracking useful!!
Thank you so much!

16th September 2012, 06:51 PM |#26  
eagleeyetom's Avatar
OP Developer Committee Lead / XDA Portal Team / Senior Moderator
Flag Gdańsk
Thanks Meter: 13,793
 
Donate to Me
More
Quote:
Originally Posted by -DarkKnight-

this should be sticked

Thanks for your comments
If you feel that this guide deserve to be a sticky - report it
16th September 2012, 06:55 PM |#27  
Prawesome's Avatar
Senior Member
Flag Error 404- Not found
Thanks Meter: 1,737
 
More
Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto
16th September 2012, 09:16 PM |#28  
Rick_1995's Avatar
Recognized Developer
Flag Santa Clara
Thanks Meter: 3,060
 
More
Quote:
Originally Posted by eagleeyetom

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

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: [ View ]
16th September 2012, 09:23 PM |#29  
eagleeyetom's Avatar
OP Developer Committee Lead / XDA Portal Team / Senior Moderator
Flag Gdańsk
Thanks Meter: 13,793
 
Donate to Me
More
Quote:
Originally Posted by Rick_1995

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
16th September 2012, 09:51 PM |#30  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,267
 
More
Quote:
Originally Posted by eagleeyetom

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
16th September 2012, 10:03 PM |#31  
sert00's Avatar
Senior Member
Flag cesena,IT
Thanks Meter: 505
 
More
oh my god man,it's what i'm looking for in last weeks!i'm beginning with compiling rom but not familiar with github and this,should make things be more easy for me,and sure for many many others people!thank you very much!appreciated!rated 5 stars and thanked!
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes